g=lambda a,b,c,d:((a-b+c+d)/2,(a+b-c+d)/2,(a+b+c-d)/2,(d-a+b+c)/2)
print(g(*map(float,input().split())))