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