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

int main()
{
    std::vector<int> high(10);

    for(int i = 0; i < 10; ++i) std::cin>> high[i];

    std::sort(high.begin(), high.end());
    std::reverse(high.begin(), high.end());
    for(int i = 0; i < 3; ++i) std::cout << high[i] << std::endl;

    return 0;
}