#include <iostream>
#include <cstdio>
#include <queue>
using namespace std;
priority_queue <int> mountain;
int m;
int main()
{
    while(cin>>m) mountain.push(m);
    int i=3;
    while(i) {
        printf("%d\n", mountain.top());
        mountain.pop();
        i--;
    }
    return 0;
}
