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())))
1 0 1 1
(1.5, 0.5, 0.5, 0.5)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!