import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] mt = new int[10]; mt new int[10] 10 for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        } int i = 0; int i = 0; i 0 i<10 i 10 i++ i++ i {
            mt[i]=Integer.parseInt(sc.next());
        } {
            mt[i]=Integer.parseInt(sc.next());
        } mt[i]=Integer.parseInt(sc.next()) mt[i] mt i Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc Arrays.sort(mt) Arrays.sort Arrays mt for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        } int i= 0; int i= 0; i 0 i<3 i 3 i++ i++ i {
            System.out.println(mt[9-i]);
        } {
            System.out.println(mt[9-i]);
        } System.out.println(mt[9-i]) System.out.println System.out System System.out mt[9-i] mt 9-i 9 i String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
        for(int i = 0; i<10;i++){
            mt[i]=Integer.parseInt(sc.next());
        }
        Arrays.sort(mt);
        for(int i= 0;i<3;i++){
            System.out.println(mt[9-i]);
        }
    }
}