#include <iostream>
#include <queue>

int main(){
    
    std::priority_queue<int> pq;
    int a;
    while(std::cin >> a) {
        pq.push(a);    }
    
    for (int i = 0; i < 3; ++i) {
        std::cout << pq.top() << "\n"; pq.pop();
    }
    
    return 0;
}
