import math N = int(input()) A = [int(input()) for _ in range(N)] ans = 100//math.gcd(*A) print(ans)