Find the Greatest Common Divisor of n numbers.
The first line contains the value of n (1 < n < 101). The second line contains n positive integers. Each number is not greater than 30000.
Print the Greatest Common Divisor of n numbers.