#import pdb; pdb.set_trace() import sys import math def main(): print "0 0" line = sys.stdin.read() print line + " 0" line2 = sys.stdin.read() if line2 == "": sys.exit() else: nline1 = int(line) nline2 = int(line2) / 2 print str(nline1 - nline2) + " " + int(nline2) if __name__ == '__main__': main()