if __name__ == "__main__": N = int(input()) ans_front = [] ans_back = [] a = 10**N if a == 1: print(1) exit() for i in range(1, int(a/2)+1): if len(ans_back) > 0 and i >= ans_back[0]: break if a%i == 0: ans_front.append(i) if int(a/i) != i: ans_back.insert(0, int(a/i)) for i in range(len(ans_front)): print(ans_front[i]) for i in range(len(ans_back)): print(ans_back[i])