from fractions import gcd N = int(input()) A = [int(input()) for _ in range(N)] m = 100 for x in A: for y in A: m = min(m, gcd(x,y)) print(100//m)