eolymp
bolt
Try our new interface for solving problems
Problems

Ride me, the big turtle!

Ride me, the big turtle!

The turtle is located in the upper-left corner (1, 1) of the table of size 1012421 × 1099921. The animal is able only to walk one cell down or one cell right.

In how many ways the turtle can reach the cell (n, m)?

Input

Two integers n and m (1n, m50) are given in one line.

Output

Print one line – the number of ways to reach the cell (n, m).

Time limit 1 second
Memory limit 128 MiB
Input example #1
2 2
Output example #1
2
Input example #2
50 1
Output example #2
1