#include <iostream>
#include <stdio.h>
#include <vector>
#include <algorithm>

#define REP(i,n) for(int i = 0;i<(int)n;i++)
#define FOR(i,a,b) for(int i = (a);i < (b);i++)
#define RFOR(i,a,b) for(int i = (a);i>(b);i--)

using namespace std;

int main(void){
    
    int high[100] = {0};
    int temp;
    REP(i, 10)
    cin >> high[i];
    REP(i,9)
    REP(j,9)
    {
        if(high[j] <high[j+1])
        {
            temp = high[j+1];
            high[j+1] = high[j];
            high[j] = temp;
        }
    }
    REP(i,3)
    printf("%d\n",high[i]);
    return 0;


}