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