#include <iostream>

int main() {
    int num[10] = {1819
,2003
,876
,2840
,1723
,1673
,3776
,2848
,1592
,922};
    int max1=2;
    int max2=1;
    int max3=0;
    for (int i=0; i<10; i++) {
        if (max3 < num[i]) {
            if (max2 < num[i]) {
                if (max1 < num[i]) {
                    max1 = num[i];
                }
                else {
                    max2 = num[i];
                }
            }
            else {
                max3 = num[i];
            }
        }
    }
    
    std::cout << max1 << std::endl;
    std::cout << max2 << std::endl;
    std::cout << max3 << std::endl;
    return 0;
}