from sys import stdin def main(): N = int(input()) ans = [3] * N ans[-1] += 1 print(*ans) input = lambda: stdin.readline() main()