N = int(input()) for _ in range(N-1): print(3, end=' ') print(1)