#include <iostream>
using namespace std;

int n = 0;

int main() {
    int hight[10];

    for (int i = 0; i < 10; i++) {
        cin >> hight[i];
    }
    
    for (int a = 1; a <= 10; a++) {
        for (int x = 0; x < 10; x++) {
            if (hight[x] < hight[x+1]) {
                n = hight[x];
                hight[x] = hight[x+1];
                hight[x+1] = n;
            }
        }
    }
    
    cout << hight[0] << endl;
    cout << hight[1] << endl;
    cout << hight[2] << endl;
    
    return 0;
}