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


public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	}

} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	} main {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] mtns = new int[10]; mtns new int[10] 10 int first first second second third; third for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			mtns[i] = sc.nextInt();
		} {
			mtns[i] = sc.nextInt();
		} mtns[i] = sc.nextInt() mtns[i] mtns i sc.nextInt() sc.nextInt sc Arrays.sort(mtns) Arrays.sort Arrays mtns System.out.println(mtns[9]) System.out.println System.out System System.out mtns[9] mtns 9 System.out.println(mtns[8]) System.out.println System.out System System.out mtns[8] mtns 8 System.out.println(mtns[7]) System.out.println System.out System System.out mtns[7] mtns 7 String[] args args public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	}

} public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	}

} Main
import java.util.Arrays;
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		int[] mtns = new int[10];
		int first, second, third;
		
		for(int i=0; i<10; i++) {
			mtns[i] = sc.nextInt();
		}
		
		Arrays.sort(mtns);
		
		System.out.println(mtns[9]);
		System.out.println(mtns[8]);
		System.out.println(mtns[7]);
		
	}

}