n = gets.to_i; c = gets.split.map(&:to_i)
  
for i in 1..80000000 do
    ok = true
    for j in 0..(n - 1) do
        if c[j] % i != 0 then
            ok = false
        end
    end
    if ok == true then
        p i
    end
end