def main(): N = int(input()) n = 10 ** N ans = set() for i in range(1, 11): div_, mod_ = divmod(n, i) if not mod_: ans.add(i) ans.add(div_) for i in sorted(ans): print(i) main()