Starting number in the sequence
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
The sequence consists of natural numbers, where each pair of consecutive numbers differs by one. The first number in the sequence is . Your task is to find the smallest natural number such that every number from onwards can be expressed as a sum of the form , where each is a natural number.
Input
You will receive two integers, and , separated by a space, from the standard input. The constraints are and .
Output
Print the smallest natural number to the standard output.
Examples
Input #2
Answer #2
Submissions 317
Acceptance rate 33%