N=int(input()) X=[] for i in range(N+1): for j in range(N+1): X.append((2**i) * (5**j)) X.sort() for x in X: print(x)