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

bool compare(int a, int b) {
    return a < b;
}

int main(void) 
{
    int i;
    std::vector<int> hs(0, 10);

    for (i = 0; i < 10; i++) {
        std::cin >> hs[i];
    }

    std::sort(hs.begin(), hs.end(), std::greater<int>());

    for (i = 0; i < 3; i++) {
        std::cout << hs[i] << "\n";
    }

    return 0;
}