There is a square in the xy-plane. The coordinates of its four vertices are (x_1,y_1),(x_2,y_2),(x_3,y_3) and (x_4,y_4) in counter-clockwise order.
(Assume that the positive x-axis points right, and the positive y-axis points up.)
Takahashi remembers (x_1,y_1) and (x_2,y_2), but he has forgot (x_3,y_3) and (x_4,y_4).
Given x_1,x_2,y_1,y_2, restore x_3,y_3,x_4,y_4. It can be shown that x_3,y_3,x_4 and y_4 uniquely exist and have integer values.

-----Constraints-----
 - |x_1|,|y_1|,|x_2|,|y_2| \leq 100
 - (x_1,y_1) ≠ (x_2,y_2)
 - All values in input are integers.

-----Input-----
Input is given from Standard Input in the following format:
x_1 y_1 x_2 y_2

-----Output-----
Print x_3,y_3,x_4 and y_4 as integers, in this order.

-----Sample Input-----
0 0 0 1

-----Sample Output-----
-1 1 -1 0

(0,0),(0,1),(-1,1),(-1,0) is the four vertices of a square in counter-clockwise order.
Note that (x_3,y_3)=(1,1),(x_4,y_4)=(1,0) is not accepted, as the vertices are in clockwise order.

Difficulty: introductory

Starter code:

Solutions:
x1, y1, x2, y2 = map(int, input().split())

print(x2-(y2-y1), y2+(x2-x1), x1-(y2-y1), y1+(x2-x1))

x1,y1,x2,y2=map(int,input().split())
x3=y1-y2+x2
y3=-x1+x2+y2
x4=y2-y3+x3
y4=-x2+x3+y3
print(x3,y3,x4,y4,end=" ")

x1, y1, x2, y2 = map(int, input().split())
x4 = x1 + y1 - y2
y4 = y1 + x2 - x1
x3 = x4 - y1 + y4
y3 = y4 + x1 - x4
print(x3, y3, x4, y4)

import sys
x1,y1,x2,y2=map(int,input().split())

print(x2-(y2-y1),y2+(x2-x1),x1-(y2-y1),y1+(x2-x1))

import sys

x1,y1,x2,y2 = map(int, input().split())

print(x2-(y2-y1), y2+(x2-x1), x1-(y2-y1), y1+(x2-x1))

x1, y1, x2, y2 = map(int, input().split())

X = x2-x1
Y = y2-y1
print(x2-Y, y2+X, x1-Y, y1+X)

a,b,c,d=map(int,input().split())
print(c-d+b,d+c-a,a-d+b,b+c-a)

x1,y1,x2,y2 = map(int,input().split())
a = x2-x1
b = y2-y1
print(" ".join(map(str,[x2-b,y2+a,x1-b,y1+a])))

x1,y1,x2,y2 =map(int,input().split())
x3 = x2-(y2-y1)
y3 = y2+(x2-x1)
x4 = x1-(y2-y1)
y4 = y1+(x2-x1)
print(x3,y3,x4,y4)

x1, y1, x2, y2 = map(int, input().split())

a = x2 - x1
b = y2 - y1

x3 = x2 - b
y3 = y2 + a
x4 = x2 - b - a
y4 = y2 + a - b

print(x3,y3,x4,y4)

import sys
read = sys.stdin.read
readlines = sys.stdin.readlines
def main():
    x1, y1, x2, y2 = map(int, input().split())
    diff_x = x2 - x1
    diff_y = y2 - y1
    r = [x2 - diff_y, y2 + diff_x, x1 - diff_y, y1 + diff_x]
    print(*r, sep= ' ')
def __starting_point():
    main()
__starting_point()

x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1

x3 = x2 - dy
y3 = y2 + dx
x4 = x1 - dy
y4 = y1 + dx

print(x3, y3, x4, y4)

a,b,c,d=map(int,input().split());e=c-a;f=d-b;print(c-f,d+e,a-f,b+e)

x1,y1,x2,y2 = map(int,input().split())
x3,y3 = x2 - (y2-y1), y2 + x2-x1
x4,y4 = x1 - (y2-y1), y1 + x2-x1

ans = [x3,y3,x4,y4]
print(*ans)

x1,y1,x2,y2=map(int,input().split())
x4=x1-(y2-y1)
y4=y1+(x2-x1)
x3=x2-(y2-y1)
y3=y2+(x2-x1)
print(x3, y3, x4, y4)

a,b,c,d = map(int,input().split())
x = c-a
y = d-b
print(c-y,d+x,a-y,b+x ,sep=' ')

x1, y1, x2, y2 = map(int, input().split())

x, y = x2 - x1, y2 - y1
print(x2-y, y2+x, x1-y, y1+x)

x1,y1,x2,y2=map(int,input().split())
if y2>=y1 and x2>=x1:
    y3=y2+abs(x2-x1)
    x3=x2-abs(y2-y1)
elif y2>=y1 and x1>x2:
    x3=x2-abs(y2-y1)
    y3=y2-abs(x2-x1)
elif y1>y2 and x2>=x1:
    x3=x2+abs(y2-y1)
    y3=y2+abs(x2-x1)
elif y1>y2 and x1>x2:
    x3=x2+abs(y2-y1)
    y3=y2-abs(x2-x1)

x4=x1+x3-x2
y4=y1+y3-y2

print(x3,y3,x4,y4)

x1,y1,x2,y2=map(int,input().split())
x3,y3,x4,y4=100,100,100,100
if y2-y1==0 or x2-x1==0:
  if x2>x1:
    x3=x2
    y3=y2+(x2-x1)
    x4=x1
    y4=y3
  elif y2>y1:
    x3=x1-(y2-y1)
    y3=y2
    x4=x3
    y4=y1
  elif x1>x2:
    x3=x2
    y3=y2+(x2-x1)
    x4=x1
    y4=y3
  elif y1>y2:
    x3=x1-(y2-y1)
    y3=y2
    x4=x3
    y4=y1

else:
  if x2>x1 and y2>y1:
    x3=x2-(y2-y1)
    y3=y2+(x2-x1)
    x4=x3-(x2-x1)
    y4=y3-(y2-y1)
  elif x2<x1 and y2>y1:
    x3=x2-(y2-y1)
    y3=y2-(x1-x2)
    x4=x3+(x1-x2)
    y4=y3-(y2-y1)
  elif x2<x1 and y2<y1:
    x3=x2+(y1-y2)
    y3=y2-(x1-x2)
    x4=x3+(x1-x2)
    y4=y3+(y1-y2)
  elif x2>x1 and y1>y2:
    x3=x2+(y1-y2)
    y3=y2+(x2-x1)
    x4=x3-(x2-x1)
    y4=y3+(y1-y2)

print(x3,y3,x4,y4)

a,b,c,d=map(int,input().split())
x,y=c-a,d-b
print(c-y,d+x,a-y,b+x)

x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1

print("{} {} {} {}".format(x2 - dy, y2 + dx, x1 - dy, y1 + dx))

x1, y1, x2, y2 = tuple(map(int, input().split()))

x3 = x2 - (y2 - y1)
y3 = y2 + (x2 - x1)
x4 = x3 - (y3 - y2)
y4 = y3 + (x3 - x2)

print(x3, y3, x4, y4)

x_1, y_1, x_2, y_2 = map(int, input().split())
print(x_2 + y_1 - y_2, y_2 + x_2 - x_1, x_1 + y_1 - y_2, y_1 + x_2 - x_1)

import math
x1, y1, x2, y2 = [int(x) for x in input().split()]
x12 = (x2-x1)
y12 = (y2-y1)
L = math.sqrt((x12)**2+(y12)**2)
x3 = (x12-y12)+x1
y3 = (x12+y12)+y1
x4 = -y12+x1
y4 = x12+y1
print('{} {} {} {}'.format(x3, y3, x4, y4))

x1, y1, x2, y2 = map(int, input().split())

dx, dy = x2-x1, y2-y1
x3, y3 = x2-dy, y2+dx
x4, y4 = x1-dy, y1+dx

print(x3, y3, x4, y4)

x1, y1, x2, y2 = map(int, input().split())

diff_x = x2-x1
diff_y = y2-y1

print(x2-diff_y, y2+diff_x, x1-diff_y, y1+diff_x)

x1, y1, x2, y2 = map(int, input().split())
dx = x2-x1
dy = y2-y1

x3 = x2-dy
y3 = y2+dx
x4 = x3-dx
y4 = y3-dy

print(*[x3, y3, x4, y4])

x1, y1, x2, y2 = map(int,input().split())
print(*[x2+y1-y2, x2-x1+y2, x1+y1-y2, x2-x1+y1])

x1, y1, x2, y2 = map(int, input().split())

x3 = x2 - (y2-y1)
y3 = y2 + (x2-x1)
x4 = x3 - (y3-y2)
y4 = y3 + (x3-x2)

print(f'{x3} {y3} {x4} {y4}')

a, b, c, d = map(int, input().split())
print(c+b-d, d+c-a, a+b-d, b+c-a )

x1, y1, x2, y2 = (int(i) for i in input().split())
x3 = x2 + (y1 - y2)
y3 = y2 + (x2 - x1)
x4 = x3 + (y2 - y3)
y4 = y3 + (x3 - x2)
print(x3, y3, x4, y4)

import math

x1, y1, x2, y2 = map(int, input().split())

x3 = x2 - (y2 - y1)
y3 = y2 + (x2- x1)
x4 = x1 - (y2 - y1)
y4 = y1 + (x2- x1)

print(x3, y3, x4, y4)

x1, y1, x2, y2 = map(int, input().split())
a = x1 - x2
b = y1 - y2
print(x2 + b, y2 - a, x1 + b, y1 - a)

a,b,c,d=map(int,input().split());print(b+c-d,-a+c+d,a+b-d,-a+b+c)

x1, y1, x2, y2 = map(int,input().split())
print(f"{x2-(y2-y1)} {y2+(x2-x1)} {x1-(y2-y1)} {y1+(x2-x1)}")

x1,y1,x2,y2 = list(map(int, input().split()))


dx = y1 - y2
dy = x2 - x1

x3 = x2 + dx
y3 = y2 + dy

x4 = x3 + (x1-x2)
y4 = y3 + (y1-y2)

print(("{} {} {} {}".format(x3,y3, x4, y4)))



a, b, c, d = map(int, input().split())
e = c - (d - b)
f = d + (c - a)
g = a - (d - b)
h = b + (c - a)
print(e, f, g, h)

# 30 あ
x1, y1, x2, y2 = map(int, input().split(' '))

x2 -= x1
y2 -= y1
x3 = x4 = -x1
y3 = y4 = -y1

#
x4 = -y2
y4 = x2
x3 = x2 + x4
y3 = y2 + y4
print(x3 + x1, y3 + y1, x4 + x1, y4 + y1)

x1, y1, x2, y2 = map(int, input().split())

dx = x2 - x1
dy = y2 - y1

x3 = x2 - dy
y3 = y2 + dx

x4 = x3 - dx
y4 = y3 - dy

print(x3, y3, x4, y4)

x1, y1, x2, y2 = map(int, input().split())
d1 = x2 - x1
d2 = y2 - y1
print(x2 - d2, y2 + d1, x1 - d2, y1 + d1)

x1, y1, x2, y2 = list(map(int, input().split()))
vector = (x2-x1, y2-y1)
x3, y3 = x2-vector[1], y2+vector[0]
x4, y4 = x1-vector[1], y1+vector[0]
print(x3, y3, x4, y4)

a,b,c,d = map(int,input().split())
s = c - a
t = d - b
x_3 = c - t
y_3 = d + s
x_4 = x_3 - s
y_4 = y_3 - t
print(str(x_3)+' '+str(y_3)+' '+str(x_4)+' '+str(y_4) )

x1,y1,x2,y2 = map(int,input().split())

x = x2 - x1
y = y2 - y1

x3 = x2 - y
y3 = y2 + x
x4 = x1 - y
y4 = y1 + x

print(x3,y3,x4,y4)

x1, y1, x2, y2 = map(int, input().split())

x3 = x2 + (y1-y2)
y3 = y2 + (x2-x1)
x4 = x3 + (y2-y3)
y4 = y3 + (x3-x2)
print(x3, y3, x4, y4)

x1, y1, x2, y2 = map(int, input().split())

x3 = x2 - (y2 - y1)
y3 = y2 + (x2 - x1)
x4 = x1 - (y2 - y1)
y4 = y1 + (x2 - x1)

print(f'{x3} {y3} {x4} {y4}')

x1,y1,x2,y2 = map(int,input().split())
x = x2-x1
y = y2-y1
x3 = x2-y
y3 = y2+x
x4 = x3-x
y4 = y3-y
print("{} {} {} {}".format(x3,y3,x4,y4))

x,y,a,b = map(int,input().split())
dx,dy = a-x, b-y
c,d = a-dy,b+dx
e,f = c-dx,d-dy
print(c,d,e,f)

a,b,c,d=map(int,input().split());print(b+c-d,c+d-a,a+b-d,b+c-a)

x1, y1, x2, y2 = map(int, input().split())
dx = x2 - x1
dy = y2 - y1

x3 = x2 - dy
y3 = y2 + dx
x4 = x3 - dx
y4 = y3 - dy

print(x3, y3, x4, y4)

import math

x1, y1, x2, y2 = map(int, input().split())

s = math.sqrt((x1-x2) ** 2 + (y1-y2) ** 2)
a = math.atan2(y2-y1, x2-x1)

x3 = x2 - math.sin(a) * s
y3 = y2 + math.cos(a) * s

x4 = x1 - math.sin(a) * s
y4 = y1 + math.cos(a) * s

print(round(x3), round(y3), round(x4), round(y4))

a,b,c,d=map(int, input().split())
x=c-a
y=d-b
ans1=a+x-y
ans2=b+x+y
ans3=a-y
ans4=b+x
print(ans1,ans2,ans3,ans4)

a,b,c,d=map(int,input().split())

e=c-(d-b)
f=d+(c-a)
g=e-(c-a)
h=f-(d-b)

print("{} {} {} {}".format(e,f,g,h))

a,b,c,d = map(int, input().split())
x = c - a
y = d - b
print(c-y, d+x, a-y, b+x)

a=[int(x)for x in input().split()];print(*[sum(a)-2*a[3*(not i%2)]-a[i] for i in[0,1,2,3]])

x1, y1, x2, y2 = map(int, input().split())

x3_1, x3_2 = x2 - abs(y2 - y1), x2 + abs(y2 - y1)
x4_1, x4_2 = x1 - abs(y2 - y1), x1 + abs(y2 - y1)
y3_1, y3_2 = y2 - abs(x2 - x1), y2 + abs(x2 - x1)
y4_1, y4_2 = y1 - abs(x2 - x1), y1 + abs(x2 - x1)

if x2 > x1 and y2 > y1:
    print(x3_1, y3_2, x4_1, y4_2)
elif x2 > x1 and y2 <= y1:
    print(x3_2, y3_2, x4_2, y4_2)
elif x2 <= x1 and y2 > y1:
    print(x3_1, y3_1, x4_1, y4_1)
elif x2 <= x1 and y2 <= y1:
    print(x3_2, y3_1, x4_2, y4_1)

x1, y1, x2, y2 = map(int, input().split())

dx = x2 - x1
dy = y2 - y1

x3, y3 = x2 - dy, y2 + dx
x4, y4 = x1 - dy, y1 + dx
print(x3, y3, x4, y4)

x1,y1,x2,y2 = map(int,input().split())
ax = x2 - x1
ay = y2 - y1

x3 = x2 - ay
y3 = y2 + ax

x4 = x1 - ay
y4 = y1 + ax

print(x3,y3,x4,y4)

def get_ans(x1,y1,x2,y2):
    def_x = abs(x2-x1)
    def_y = abs(y2-y1)

    if x2 < x1 and y2 <= y1:
        x3 = x2+def_y
        y3 = y2-def_x
        x4 = x1+def_y
        y4 = y1-def_x 
    elif y2 < y1 and x1 <= x2:
        x3 = x2+def_y
        y3 = y2+def_x
        x4 = x1+def_y
        y4 = y1+def_x     
    elif x2 > x1 and y1 <= y2:
        x3 = x2-def_y
        y3 = y2+def_x
        x4 = x1-def_y
        y4 = y1+def_x 
    elif y2 > y1 and x1 >= x2:
        x3 = x2-def_y
        y3 = y2-def_x
        x4 = x1-def_y
        y4 = y1-def_x

    print(x3,y3,x4,y4)
    #return x3,y3,x4,y4

x1,y1,x2,y2 = map(int, input().split())
get_ans(x1,y1,x2,y2)

a,b,c,d=map(int,input().split())
x=c-a
y=d-b
print(c-y,d+x,a-y,b+x)

x1,y1,x2,y2 = map(int,input().split())
x3 = x2 - (y2-y1)
y3 = y2 + (x2-x1)
x4 = x1 - (y2-y1)
y4 = y1 + (x2-x1)
print(x3,y3,x4,y4)

x1, y1, x2, y2 = map(int, input().split())
print(x2 + y1 - y2, y2 - x1 + x2, x1 + y1 - y2, y1 - x1 + x2)

x1, y1, x2, y2 = map(int, input().split())
x_len = x2 - x1
y_len =  y2 - y1
print("{} {} {} {}".format(x2-y_len,y2+x_len,x1-y_len,y1+x_len))

x1,y1,x2,y2=map(int,input().split())

x=x2-x1
y=y2-y1

x3=x2-y
y3=y2+x

x4=x1-y
y4=y1+x

print(x3,y3,x4,y4)

X1,Y1,X2,Y2 = map(int,input().split())
a = X2 - X1
b = Y2 - Y1
X3 = X2 - b
Y3 = Y2 + a
X4 = X1 - b
Y4 = Y1 + a
print(X3,end=' ') 
print(Y3,end=' ')
print(X4,end=' ')
print(Y4)

a, b, c, d = map(int, input().split())
x = c - a
y = d - b
print(c-y,d+x,a-y,b+x)

a,b,c,d=map(int,input().split())
print(c-d+b,d+c-a,a-d+b,b+c-a)

x1,y1,x2,y2 = map(int,input().split())
print(x2-(y2-y1),y2+x2-x1,x1-(y2-y1),y1+x2-x1)

a,b,c,d=map(int,input().split());print(c-d+b,d+c-a,a-d+b,b+c-a)

# -*- coding:utf-8 -*-
x1,y1,x2,y2 = list(map(int,input().split()))

xdiff = x2 - x1
ydiff = y2 - y1

x3 = x2 - ydiff
y3 = y2 + xdiff

x4 = x3 - xdiff
y4 = y3 - ydiff

print((str(x3) + " "+ str(y3) + " " + str(x4) + " " + str(y4)))


import sys
import math

#https://atcoder.jp/contests/agc008/submissions/15248942
sys.setrecursionlimit(10 ** 8)
ini = lambda: int(sys.stdin.readline())
inm = lambda: map(int, sys.stdin.readline().split())
inl = lambda: list(inm())
ins = lambda: sys.stdin.readline().rstrip()
debug = lambda *a, **kw: print("\033[33m", *a, "\033[0m", **dict(file=sys.stderr, **kw))

x1,y1,x2,y2 = inm()

y3 = y2 + (x2 - x1)
x3 = x2 - (y2 - y1)
y4 = y3 - (y2 - y1)
x4 = x3 - (x2 - x1)

print(x3,y3,x4,y4)

x1,y1,x2,y2 = map(int,input().split())

dx,dy = x2-x1,y2-y1
print(x2-dy,y2+dx,x1-dy,y1+dx,sep = ' ')

x1,y1,x2,y2= map(int,input().split())
a = x1-x2
b = y1-y2
print(x2+b,y2-a,x1+b,y1-a)

x=[0]*4
y=[0]*4

x[0], y[0], x[1], y[1] = map(int, input().split())

xdist = x[1]-x[0]
ydist = y[1]-y[0]

x[2] = x[1]-ydist
y[2] = y[1]+xdist

x[3] = x[2]-xdist
y[3] = y[2]-ydist
    
print(x[2], y[2], x[3], y[3])

x1, y1, x2, y2 = map(int, input().split())
a = x2 - x1
b = y2 - y1
x3 = x2 - b
y3 = y2 + a
x4 = x3 - a
y4 = y3 - b
print(x3, y3, x4, y4)

#-*-coding:utf-8-*-
import sys
input=sys.stdin.readline

def main():
    x1,y1,x2,y2 = map(int,input().split())
    x12 = (x2-x1)
    y12 = (y2-y1)
    x3 = (x12-y12)+x1
    y3 = (x12+y12)+y1
    x4 = -y12+x1
    y4 = x12+y1
    print('{} {} {} {}'.format(x3, y3, x4, y4))

def __starting_point():
    main()
__starting_point()