def main(): N = int(input()) for i in range(4,312454,3): if i %3 ==1 and i >= (N-1): ans = [i] ans[0] -= N-2 ans +=[1]*(N-2) ans.append(3) print((' ').join(map(str,ans))) return None main()