GCD#137

GCD

1 second
128 megabytes
Very easy

Find the greatest common divisor (GCD) of numbers.

Input

The first line contains the number of integers (1 < n < 101). The second line contains positive integers, each not exceeding .

Output

Print one number — the GCD of the given numbers.

Examples

Example 1

Loading
Loading