#!/usr/bin/env python3 from functools import reduce import math def lcm(a,b): return a * b // math.gcd(a, b) n = int(input()) xs = [int(input()) for i in range(n)] ans = reduce(lcm, [100 // math.gcd(100, x) for x in xs]) print(ans)