Fourth Point!!
while 1:
try:
a=list(map(float,input().split()))
if a[0]==a[4] and a[1]==a[5]:
x=a[2]+a[6]-a[4]
y=a[3]+a[7]-a[5]
elif a[0]==a[6] and a[1]==a[7]:
x=a[2]+a[4]-a[6]
y=a[3]+a[5]-a[7]
elif a[2]==a[4] and a[3]==a[5]:
x=a[0]+a[6]-a[4]
y=a[1]+a[7]-a[5]
else:
x=a[0]+a[4]-a[6]
y=a[1]+a[5]-a[7]
print('{:.3f} {:.3f}'.format(x,y))
except:
break