n = int(input()) N = 10**n t = [2**i for i in range(61)] f = [5**j for j in range(27)] ls = [] for i in t: for j in f: ls.append(i*j) ans = [] for i in ls: if N%(i) == 0: ans.append(i) ans = list(set(ans)) ans.sort() print(ans)