import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    }
} Main public static void main(String[] args) throws Exception {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    } main {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] m = new int[10]; m new int[10] 10 for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt(); int i =0 ; int i =0 ; i 0 i<10 i 10 i++ i++ i m[i] = scan.nextInt(); m[i] = scan.nextInt() m[i] m i scan.nextInt() scan.nextInt scan Arrays.sort(m) Arrays.sort Arrays m for( int i=9;i>=7;i--)
    System.out.println(m[i]); int i=9; int i=9; i 9 i>=7 i 7 i-- i-- i System.out.println(m[i]); System.out.println(m[i]) System.out.println System.out System System.out m[i] m i String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
    Scanner scan = new Scanner(System.in);
    
    int[] m = new int[10];
    for (int i =0 ; i<10 ;i++)
        m[i] = scan.nextInt();
        
    Arrays.sort(m);
    for( int i=9;i>=7;i--)
    System.out.println(m[i]);
    
    }
}