#include <cstdio>
#include <iostream>
#include <cmath>
#include <ctype.h>
#include <string> 
#include <sstream>
#include <iostream>
#include <algorithm>
#include <cstdlib>
#include <map>
#include <queue>
#include <utility>
#include <vector>
#include <set>
#include <list>
#include <cstring>
#include <stack>
   
using namespace std;

int main()
{
    vector<int> mountain;
    for(int i = 0; i < 10; i++){
        int tmp;
        cin >> tmp;
        mountain.push_back(tmp);
    }
    sort(mountain.begin(), mountain.end());
    reverse(mountain.begin(), mountain.end());
    for(int i = 0; i < 3; i++){
        cout << mountain[i] << endl;
    }
    return 0;
}