N = int(input()) A = list(map(int, input().split(' '))) print(0) for _ in range(N): print(0, 0)