N = int(input()) A = [int(input()) for _ in range(N)] from math import gcd x = 100 for a in A: x = gcd(x,a) print(100//x)