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