Cake from Tolya#1033

Cake from Tolya

1 second
128 megabytes
Very easy

Tolya wants to treat his friends to a cake on his birthday. It is known that there may be either or people at the party (including the birthday person). What is the minimum number of pieces (not necessarily equal) into which the cake should be cut so that in either case everyone gets an equal share?

Input

Two integers and (1 \leq m, n \leq 30000).

Output

Print the minimum number of pieces into which the cake should be cut.

Examples

Example 1

Loading
Loading