HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Camp. Turkey > problem:


Corridor

Volume problems

• 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
• Divisors

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 1000/1000/1000/1000 ms. Memory limit 65000/65000/65000/65000 Kb.

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