시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB25313610659.218%

문제

Write a program to find the max GCD (greatest common divisor) among any pairs of the input integers.

입력

The input contains positive integers, greater than zero and less than 1 million. The input may include at most 100 integers.

출력

Print out the max value of GCD of any pairs.

예제 입력 1

5 30 18
34 50 1 2
90 100 201 10347

예제 출력 1

50