N = int(input()) ans = [3] * (N - 1) ans.append(1) for num, i in enumerate(ans): if num < len(ans)-1: print(i, end=' ') else: print(i)