positive integers are given. Find the greatest common divisor of these numbers.
The first line contains one integer n~(n \le 1000). The second line contains positive integers, each does not exceed 2 \cdot 10^9.
Print the greatest common divisor of given numbers.
Example 1