https://www.acmicpc.net/problem/2309
#풀이 1번
import sys
dwarf = []
result = 0
for _ in range(9):
dwarf.append(int(sys.stdin.readline().rstrip('\n')))
dwarf.sort()
sum_dwarf = sum(dwarf) - 100
for i in range(9):
for j in range(i+1, 9):
if (dwarf[i] + dwarf[j] == sum_dwarf):
dwarf.remove(dwarf[i])
dwarf.remove(dwarf[j-1])
for k in dwarf:
print(k)
exit()
#풀이 2번
import itertools
dwarf = [int(input()) for _ in range(9)]
for i in itertools.combinations(dwarf, 7):
if sum(i) == 100:
for j in sorted(i):
print(j)
break