N = input() M = [] for i in range(N): M.append(input()) for i in range(1, 101): A = [] for j in M: A.append(i * j/100) if len(A) == 1: print i break