N = int(input()) ans = [3] + [1] * (N - 1) s = sum(ans) while s % 3 != 1: ans[-1] += 1 s += 1 print(*ans)