#caddi2018a. [caddi2018_a]Product and GCD
[caddi2018_a]Product and GCD
Problem Statement
There are integers not less than . The values of are not known, but it is known that .
Find the maximum possible greatest common divisor of .
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
Sample Input 1
3 24
Sample Output 1
2
The greatest common divisor would be when, for example, and .
Sample Input 2
5 1
Sample Output 2
1
As are positive integers, the only possible case is .
Sample Input 3
1 111
Sample Output 3
111
Sample Input 4
4 972439611840
Sample Output 4
206