import sys offs1, offs2 = map(int,sys.argv[1:3]) for line in sys.stdin: a,b = map(int, line.split()) print "%s\t%s" % (a + offs1 + 1, b + offs2)