print(*map(list, zip(*[map(int, input().split()) for i in range(int(input()))])))