#include<iostream>
#include<vector>
using namespace std;
int main(){
vector<int> v;
int x;
while(cin>>x){
v.push_back(x);
}
sort(v.begin(),v.end());
cout<<v[0]<<endl;
cout<<v[1]<<endl;
cout<<v[2]<<endl;
reutrn 0;
}