import java.util.*;
 
public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    }
} Main public static void main(String args[] ) throws Exception {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    } main {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer array[]; array array = new Integer[10] array new Integer[10] 10 for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        } {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        } Integer mountain = sc.nextInt(); mountain sc.nextInt() sc.nextInt sc array[i] = mountain array[i] array i mountain Arrays.sort(array, Comparator.reverseOrder()) Arrays.sort Arrays array Comparator.reverseOrder() Comparator.reverseOrder Comparator for (int j=0; j<3; j++){
        System.out.println(array[j]);
        } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
        System.out.println(array[j]);
        } {
        System.out.println(array[j]);
        } System.out.println(array[j]) System.out.println System.out System System.out array[j] array j String args[] args public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    }
} public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String args[] ) throws Exception {
    	
    	Scanner sc = new Scanner(System.in);
    	Integer array[];
    	array = new Integer[10];	
    	
        for (int i=0; i<10; i++) {
            Integer mountain = sc.nextInt();
            array[i] = mountain;
        }
        
        Arrays.sort(array, Comparator.reverseOrder());
        for (int j=0; j<3; j++){
        System.out.println(array[j]);
        }
    }
}