import math def main(): n = int(input()) arr = [int(input()) for _ in range(n)] ans = 100 // math.gcd(*arr) print(ans) if __name__ == "__main__": main()