# 机智如我 import sys x = int(input()) y = int(input()) def call(x,y): print(x - y ) print(y-x) call(x,y)