#include <algorithm>
#include <iostream>

auto main() -> int {
    int heights[10];
    for (int i = 0; i < 10; i++) {
        std::cin >> heights[i];
    }

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

    for (int i = 0; i < 3; i++) {
        std::cout << heights[i] << std::endl;
    }
}