n = int(input()) result = [3] * (n - 1) result.append(1) for i in result: print(i, end=' ') print()