#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
vector<int> snowWhite;
int total = 0;
int height = 0;
bool check = false;
for (int i=0; i<9; i++){
cin >> height;
total += height;
snowWhite.push_back(height);
}
sort(snowWhite.begin(), snowWhite.end());
for (int i=0; i<9; i++){
for (int j=i+1; j<9; j++){
if (snowWhite[i] + snowWhite[j] == total - 100){
check = true;
for (int k=0; k<9; k++){
if (k == i || k == j){
continue;
}
cout << snowWhite[k] << endl;
}
break;
}
}
if (check) break;
}
return 0;
}