Cake from Tolya
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Tolya is planning to treat his friends to a cake on his birthday. It is known that there can be either or people at the birthday party, including Tolya himself. What is the minimum number of slices he needs to cut the cake into (not necessarily equal slices) so that, regardless of the number of guests, everyone can have an equal portion of cake?
Input
Two integers and .
Output
Print the minimum number of cake slices.
Examples
Input #1
Answer #1
Submissions 3K
Acceptance rate 41%