The greatest common divisor
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
positive integers are given. Find the greatest common divisor of these numbers.
Input
The first line contains one integer . The second line contains positive integers, each does not exceed .
Output
Print the greatest common divisor of given numbers.
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 51%