import math def solve(N, As): if N == 1: return 1 d = As[0] for a in As[1:]: d = math.gcd(d, a) return 100 // d N = int(input()) As = [int(input()) for i in range(N)] print(solve(N, As))