26 lines
556 B
Python
26 lines
556 B
Python
from __future__ import print_function
|
|
import sys
|
|
|
|
a = map(int, sys.stdin.readline().split())
|
|
b = map(int, sys.stdin.readline().split())
|
|
c = map(int, sys.stdin.readline().split())
|
|
|
|
def mul(a, b):
|
|
x,y = a; z,w = b
|
|
return x*z + y*w
|
|
def add(a, b):
|
|
x,y = a; z,w = b
|
|
return (x+z, y+w)
|
|
def sub(a, b):
|
|
x,y = a; z,w = b
|
|
return (x-z, y-w)
|
|
|
|
if mul(sub(b, a), sub(c, a)) == 0:
|
|
print(*sub(add(c, b), a))
|
|
elif mul(sub(a, b), sub(c, b)) == 0:
|
|
print(*sub(add(a, c), b))
|
|
elif mul(sub(b, c), sub(a, c)) == 0:
|
|
print(*sub(add(a, b), c))
|
|
else:
|
|
print("WTF")
|