MegaGCD
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given some numbers. Find the biggest number that divides all these numbers.
Input
One line contains some integers (1 ≤ number of integers ≤ 1000, 1 ≤ each number ≤ 10^9
).
Output
Print the biggest number that divides all the given numbers.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 40%