def gcd(a,b): if b == 0 : return a else : return gcd(b,a%b) n = int(input()) arr = [] for i in range(n): arr.append(int(input())) ans = arr[0] for i in range(1,n): ans = gcd(ans,arr[i]) print 100/ans