#include <iostream>
#include <algorithm>
using namespace std;
int a[9];
int n = 9;
int main(){
int sum = 0;
for (int i =0; i<n; i++){
cin >>a[i];
sum += a[i];
}
sort(a,a+n);
for (int i=0; i<n; i++){
for (int j=i+1; j<n; j++){
if (sum - a[i] - a[j] == 100){
for (int k=0; k<n; k++){
if (i==k || j==k) continue;
cout<< a[k] << '\n';
}
return 0;
}
}
}
return 0;
}
์ ๋ต์ฝ๋ - ํ์ด์ฌ
arr = []
#์ ๋ ฅ
for _ in range(9):
arr.append(int(input()))
#๋ธ๋ฃจํธ ํฌ์ค : 9๋ช ์ค, 2๋ช ์ ๋บ ๋๋จธ์ง์ ํฉ์ด 100
for i in range(9):
for k in range(9):
if sum(arr) - arr[i] - arr[k] == 100:
remove = [arr[i],arr[k]] #ํ์ ์๋ 2๋ช
#์ถ๋ ฅ
arr.remove(remove[0])
arr.remove(remove[1])
arr.sort()
for i in arr:
print(i)
์ถ๊ฐ : 2์ค for๋ฌธ์์, range์ ๋ฒ์์ค์ ์ for k inrange(i+1,9) ๋ก ํ์ด์ผ, ์ค๋ณต์ฐ์ฐ ์๋ ์ฝ๋๊ฐ ๋๋ค.