N = int(input()) L = [] for i in range(N+1): for j in range(N+1): L += [2**i * 5**j] for k in sorted(L): print(k)