#include<iostream>
#include<cmath>
#include<cstring>
#include<cstdio>
#include<algorithm>
using namespace std;


int main()
{
    //freopen("in.txt","r",stdin);
    //freopen("out.txt","w",stdout);
    int h[10];
    int i,j;
    for(i=0;i<10;i++)
      scanf("%d",&h[i]);
    sort(h,h+10);
    printf("%d\n%d\n%d\n",h[9],h[8],h[7]);
    //fclose(stdin);
    //fclose(stdout);
    return 0;
}