x1,y1 = map(float,input().split()) x2,y2 = map(float,input().split()) a = complex(round(x1+x2,1),round(y1+y2,1)) b = complex(round(x1-x2,1),round(y1-y2,1)) print(a) print(b) # 这个代码暂时有 bug,整数的时候不会补 0,但是暂时够用了