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