import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	}
} Main public static void main(String[] args) {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	} main {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	} int[] mountain; mountain int taihi; taihi Scanner sc = new Scanner(System.in); sc new Scanner(System.in) mountain = new int[10] mountain new int[10] 10 for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			mountain[i] = sc.nextInt();
		} {
			mountain[i] = sc.nextInt();
		} mountain[i] = sc.nextInt() mountain[i] mountain i sc.nextInt() sc.nextInt sc for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		} int i=0; int i=0; i 0 i<mountain.length i mountain.length mountain mountain.length i++ i++ i {
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		} {
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		} for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			} int y = i+1; int y = i+1; y i+1 i 1 y<mountain.length y mountain.length mountain mountain.length y++ y++ y {
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			} {
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			} if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				} mountain[i]<mountain[y] mountain[i] mountain i mountain[y] mountain y {
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				} taihi = mountain[i] taihi mountain[i] mountain i mountain[i] = mountain[y] mountain[i] mountain i mountain[y] mountain y mountain[y] = taihi mountain[y] mountain y taihi for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			System.out.println(mountain[i]);
		} {
			System.out.println(mountain[i]);
		} System.out.println(mountain[i]) System.out.println System.out System System.out mountain[i] mountain i String[] args args public class Main {

	public static void main(String[] args) {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	}
} public class Main {

	public static void main(String[] args) {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		//??????????????°
		int[] mountain;
		int taihi;

		//??????
		Scanner sc = new Scanner(System.in);

		mountain = new int[10];
		for(int i=0; i<10; i++){
			mountain[i] = sc.nextInt();
		}


		for(int i=0; i<mountain.length; i++){
			for(int y = i+1; y<mountain.length; y++){
				if(mountain[i]<mountain[y]){
					taihi = mountain[i];
					mountain[i] = mountain[y];
					mountain[y] = taihi;
				}
			}
		}
		for(int i=0; i<3; i++){
			System.out.println(mountain[i]);
		}
	}
}