n = int(input()) st = set() for i in range(n + 1): for j in range(n + 1): st.add(2 ** i * 5 ** j) for s in sorted(st): print(s)