Teacher brought a fruit basket for three students. The basket contains only Apples, Mangoes and Oranges. Student A knows a value $a$, the total number of Apples and Mangoes in the Basket, B knows a value $b$, the total number of Mangoes and Oranges in the basket and Student C knows a value $c$, the total number of Oranges and Apples in the Basket. Since the teacher brought it he knows a value $d$ , the total number of fruits in the basket. You have to determine the exact number of Apples , Mangoes and Oranges in the basket separately.

-----Input:-----
- First line will contain $T$, number of testcases. Then the testcases follow. 
- Each testcase contains of a single line of input, four integers $a,b,c,d$. 

-----Output:-----
For each testcase, output in a single line the number of Apples , Mangoes and Oranges in this order.

-----Constraints-----
- $1 \leq T \leq 100$
- $0 \leq a \leq 1000$
- $0 \leq b \leq 1000$
- $0 \leq c \leq 1000$
- $0 \leq d \leq 1000$ 
-The Solution always exisits

-----Sample Input:-----
2

7 9 8 12

3 8 7 9

-----Sample Output:-----
3 4 5

1 2 6

Starter code:

Solutions:
# cook your dish here
for j in range(int(input())):
 
 p,q,r,s =map(int,input().split())
 x=(s-p)
 y=(s-q)
 z=(s-r)
 print(y,z,x)

def __starting_point():
 try:
  for i in range(int(input())):
   a,b,c,d=list(map(int,input().split()))
   print(d-b, d-c,d-a)
 except:
  pass





__starting_point()

for _ in range(int(input())):
 a,b,c,d=map(int,input().split())
 print(c-d+a,b-d+a,d-a)

# cook your dish here
for _ in range(int(input())):
 p=list(map(int,input().split()))
 print(p[3]-p[1] , p[3]-p[2] , p[3]-p[0])

# cook your dish here
I=lambda:list(map(int,input().split()))
t=I()[0]
while(t):
 t-=1
 a,b,c,d=I()
 print(d-b,d-c,d-a)

t = int(input())
while t:
 a,b,c,d = list(map(int , input().split()))
 app = ((a-b) + c) // 2
 mng = a - app
 org = d - (app + mng)
 print(app,mng,org)
 t = t - 1

# cook your dish here
t = int(input())
for i in range(t):
 o = list(map(int, input().split()))
 A = int(o[0])
 B = int(o[1])
 C = int(o[2])
 D = int(o[3])
 orange = D - A
 apple = D - B
 mango = D - C
 print(apple, mango, orange, end=' ')
 print()


# cook your dish here
t=int(input())

for i in range(t):
 lst=list(map(int,input().split()))
 print(lst[3]-lst[1],lst[3]-lst[2],lst[3]-lst[0])


t=int(input())
for _ in range(t):
 a,b,c,d=map(int,input().split())
 print(int((a+b+c)/2 -b),end=" ")
 print(int((a+b+c)/2 -c),end=" ")
 print(int((a+b+c)/2 -a))
 print()
 

for i in range (int(input())):

 a,b,c,d = map(int,input().split())
 v1 = d-a
 v2 = d-b
 v3 = d-c
 
 print(v2,v3,v1)

for _ in range(int(input())):
 l=list(map(int,input().split()))
 a=l[0]
 b=l[1]
 c=l[2]
 d=l[3]
 A=d-b
 M=d-c
 O=d-a
 print(A,M,O)

for _ in range(int(input())):
 l=list(map(int,input().split()))
 a=l[0]
 b=l[1]
 c=l[2]
 d=l[3]
 A=d-b
 M=d-c
 O=d-a
 print(A,M,O)

t=int(input())
while(t):
 t-=1
 a,b,c,d=list(map(int,input().split()))
 print(d-(b),d-(c),d-(a))


for _ in range(int(input())):
 a,b,c,d=map(int,input().split())
 print(d-b,d-c,d-a)

t=int(input())
for _ in range(t):
 a,b,c,d=list(map(int,input().split()))
 print(d-b,d-c,d-a)


# cook your dish here
t=int(input())

for _ in range(t):
 a,b,c,d=list(map(int,input().split()))
 e=(a+c)-d
 f=(a+b)-d
 g=(b+c)-d
 print(e,f,g)
 


try:
 n1=int(input())
 for i in range(n1):
  n=list(map(int,input().split()))
  b=n[0]+n[1]-n[3]
  a=n[0]-b
  c=n[2]-a
  print(a,b,c)
except:
 pass

list1=[]
for i in range(int(input())):
 list1.append(list(map(int,input().split())))
apple=[]
orange=[]
mango=[]
for i in range(len(list1)):
 apples=list1[i][0]+list1[i][2]-list1[i][1]
 apple.append(apples/2)
 mango.append(list1[i][0]-apple[i])
 orange.append(list1[i][2]-apple[i])
for i in range(len(list1)):
 print(int(apple[i]),int(mango[i]),int(orange[i]))


try:
 for _ in range(int(input())):
  list1=[int(x) for x in input().split()]
  n2=list1[0]+list1[1]-list1[3]
  n1=list1[0]-n2
  n3=list1[2]-n1
  print(n1,n2,n3)
except:
 pass

tc=int(input())
while(tc>0):
 a=list(map(int,input().split()))
 a1=a[3]-a[1]
 a2=a[3]-a[2]
 a3=a[3]-a[0]
 print(a1,a2,a3)
 tc=tc-1


# cook your dish here
for _ in range(int(input())):
 a,b,c,d=map(int,input().split())
 x=(a-b+c)//2
 y=(a-c+b)//2
 z=(b+c-a)//2
 print(x,y,z)

list1=[]
for i in range(int(input())):
 list1.append(list(map(int,input().split())))
apple=[]
orange=[]
mango=[]
for i in range(len(list1)):
 apples=list1[i][0]+list1[i][2]-list1[i][1]
 apple.append(apples/2)
 mango.append(list1[i][0]-apple[i])
 orange.append(list1[i][2]-apple[i])
for i in range(len(list1)):
 print(int(apple[i]),int(mango[i]),int(orange[i]))