import math n = int(input()) a = [int(input()) for _ in range(n)] if n == 1: print(1) else: x = math.gcd(a[0], a[1]) if n == 2: print(100 // x) else: for i in range(n-2): x = math.gcd(x, a[i+2]) print(100 // x)