#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

int compare(const void *a, const void *b)
{
    return *(int*)a - *(int*)b;
}

int main(){
    int arr[10];

    for (int i = 0; i < 10; i++)
    {
        cin >> arr[i];
    }

    sort(arr, arr + 10);
    for (int i = 1; i <= 3; i++)
    {
        cout << arr[10 - i] << endl;
    }


    return 0;
}