import sys

def printPos(x, y):
    print str(x) + "  " + str(y)
    sys.stdout.flush()



def go():
    SZ = int(raw_input())
    printPos(0,0)
    while True:
        line = str(raw_input())
        nums = [int(s) for s in line.split() if s.isdigit()]
        ax, ay = nums[0], nums[1]
        printPos(-ax, -ay)


if __name__ == "__main__":
    go()