import fractions import functools import math def solve(arr): return functools.reduce((lambda r, i: r * i // math.gcd(r, i)), [fractions.Fraction(b, 100).denominator for b in arr]) n = int(input()) a = [int(input()) for _ in range(n)] print(solve(a))