Peter and the numbers#2711

Peter and the numbers

1 second
64 megabytes
Easy

On the blackboard, there are natural numbers. Peter chooses two of them at random; if the numbers are equal, one of them is erased. If the numbers are different, the difference is written in place of the larger one. This process continues until only one number remains on the board. Which numbers could Peter possibly obtain as the final result?

Input

The first line contains the integer (N \leq 10^5). The second line contains natural numbers separated by spaces. All input numbers fit in the type Longint.

Output

Output all possible numbers Peter could obtain, separated by spaces.

Examples

Example 1

Loading
Loading