N = int(input()) from math import gcd g = 0 for i in range(N): g = gcd(g, int(input())) print(100 // g)