sz = input() print("0 0") while true: a, b = [int(x) for x in raw_input().split()] print a + " " + b