import java.util.Arrays;
import java.util.Scanner;

class Main{
    public static void main(String[] a){
		int[] d = new int[10];
		Scanner sc = new Scanner(System.in);
		for(byte i=0;i<10;i++){
			d[i] = Integer.parseInt(sc.nextLine());
		}
		Arrays.sort(d);
		System.out.println(d[9]+"\n"+d[8]+"\n"+d[7]);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] a){
		int[] d = new int[10];
		Scanner sc = new Scanner(System.in);
		for(byte i=0;i<10;i++){
			d[i] = Integer.parseInt(sc.nextLine());
		}
		Arrays.sort(d);
		System.out.println(d[9]+"\n"+d[8]+"\n"+d[7]);
    }
} Main public static void main(String[] a){
		int[] d = new int[10];
		Scanner sc = new Scanner(System.in);
		for(byte i=0;i<10;i++){
			d[i] = Integer.parseInt(sc.nextLine());
		}
		Arrays.sort(d);
		System.out.println(d[9]+"\n"+d[8]+"\n"+d[7]);
    } main {
		int[] d = new int[10];
		Scanner sc = new Scanner(System.in);
		for(byte i=0;i<10;i++){
			d[i] = Integer.parseInt(sc.nextLine());
		}
		Arrays.sort(d);
		System.out.println(d[9]+"\n"+d[8]+"\n"+d[7]);
    } int[] d = new int[10]; d new int[10] 10 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(byte i=0;i<10;i++){
			d[i] = Integer.parseInt(sc.nextLine());
		} byte i=0; byte i=0; i 0 i<10 i 10 i++ i++ i {
			d[i] = Integer.parseInt(sc.nextLine());
		} {
			d[i] = Integer.parseInt(sc.nextLine());
		} d[i] = Integer.parseInt(sc.nextLine()) d[i] d i Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc Arrays.sort(d) Arrays.sort Arrays d System.out.println(d[9]+"\n"+d[8]+"\n"+d[7]) System.out.println System.out System System.out d[9]+"\n"+d[8]+"\n"+d[7] "\n" d[8] d[9]+"\n"+d[8]+"\n"+d[7] d[9] d 9 "\n" d[8] d 8 "\n" d[7] d 7 String[] a a
import java.util.Arrays;
import java.util.Scanner;

class Main{
    public static void main(String[] a){
		int[] d = new int[10];
		Scanner sc = new Scanner(System.in);
		for(byte i=0;i<10;i++){
			d[i] = Integer.parseInt(sc.nextLine());
		}
		Arrays.sort(d);
		System.out.println(d[9]+"\n"+d[8]+"\n"+d[7]);
    }
}