ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Неотсортированные > задача:


Corridor

Задачи раздела

• GCD of ones
• Set cover problem
• Subsets
• The N Queens Problem
• Maximum Sum 2
• Gifts of Santa Claus
• Shopping
• Diameter of graph
• Corridor
• Prime numbers
• Rectangles on a plane
• A. Бактерии
• A. Любимые числа
• A. Рекламный щит
• ASCII Characters
• Area of triangle
• B. basketball

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 1000/1000/1000/1000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

Problem description

There is a corridor N meters length and M meters wide. John decided to cover its floor with N blocks sized 1xM meters and he wonders how many different ways are there to do it?

For example, if N=6 and M=4 then there are 4 ways to do it (see the picture).

Input

There are 2 integers M and N in input file (2 ≤ M ≤ N ≤ 50).

Output

One integer – answer to the question.

Example

stdin stdout

4 6

4

2 2

2
Для отправки решений необходимо выполнить вход.

www.contester.ru