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