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