N = int(input()) print("3 "*(N-1)+str(4 - (3*(N-1))%3))