Bruce is given a multiset of
integers. Bruce defines
to be the set of factors of
, including
and
. Bruce would like to know
. That is, Bruce would like to know the common factors that exists in all elements in
.
Input Specification
The first line will contain the integer
.
The second line will contain integers,
.
Output Specification
Output the factors that are common to all elements in , one factor per line, in sorted order.
Subtasks
For 5/15 of the points, .
Sample Input
4
28 12 8 20
Sample Output
1
2
4
Comments