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?
Two integers and (1 \leq m, n \leq 30000).
Print the minimum number of pieces into which the cake should be cut.
Example 1