
#include<stdio.h>
#include<vector>
#include<algorithm>

int main(){
    int i;
    int input;
    std::vector<int> height;
    for (i = 0; i < 10; i++){
        scanf("%d", &input);
        height.push_back(input);
    }

    std::sort(height.begin(), height.end());

    printf("%d\n", height[9]);
    printf("%d\n", height[8]);
    printf("%d\n", height[7]);

    return 0;
}