#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>

int main()
{
    const int Size = 10;
    std::vector<int> List(Size);
    for(int i = 0; i < Size; ++i){
        std::cin >> List[i];
    }
    std::sort(List.begin(), List.end(), std::greater<int>());
    
    std::cout << List[0] << std::endl;
    std::cout << List[1] << std::endl;
    std::cout << List[2] << std::endl;

    return 0;
}