https://www.acmicpc.net/problem/2309
arr=[0]*9
sum=-100
for i in range(9):
arr[i]=int(input())
sum+=arr[i]
c=0
for i in range(8):
for j in range(i+1,9):
if arr[i]+arr[j]==sum:
arr[i]=110
arr[j]=110
c=1
break
if c==1: break
arr.sort()
for i in range(7): print(arr[i])