n = int(input()) for i in range(n): if i == 0: print(1, end=" ") elif i == n -1: print(3) else: print(3, end=" ")