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