import java.util.Scanner;

class Main {
	public static void main(String[] a){
		Scanner scan = new Scanner(System.in);
	
		int m;
		int[] tall;
		tall = new int[3];
		
		for(int i = 0; i < 10; i++){
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.println(tall[i]);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] a){
		Scanner scan = new Scanner(System.in);
	
		int m;
		int[] tall;
		tall = new int[3];
		
		for(int i = 0; i < 10; i++){
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.println(tall[i]);
		}
	}
} Main public static void main(String[] a){
		Scanner scan = new Scanner(System.in);
	
		int m;
		int[] tall;
		tall = new int[3];
		
		for(int i = 0; i < 10; i++){
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.println(tall[i]);
		}
	} main {
		Scanner scan = new Scanner(System.in);
	
		int m;
		int[] tall;
		tall = new int[3];
		
		for(int i = 0; i < 10; i++){
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.println(tall[i]);
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int m; m int[] tall; tall tall = new int[3] tall new int[3] 3 for(int i = 0; i < 10; i++){
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		} {
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		} m = scan.nextInt() m scan.nextInt() scan.nextInt scan if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			} tall[0] < m tall[0] tall 0 m {
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			} tall[2] = tall[1] tall[2] tall 2 tall[1] tall 1 tall[1] = tall[0] tall[1] tall 1 tall[0] tall 0 tall[0] = m tall[0] tall 0 m if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			} tall[1] < m tall[1] tall 1 m {
				tall[2] = tall[1];
				tall[1] = m;
			} tall[2] = tall[1] tall[2] tall 2 tall[1] tall 1 tall[1] = m tall[1] tall 1 m if(tall[2] < m){
				tall[2] = m;
			} tall[2] < m tall[2] tall 2 m {
				tall[2] = m;
			} tall[2] = m tall[2] tall 2 m for(int i = 0; i < 3; i++){
			System.out.println(tall[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(tall[i]);
		} {
			System.out.println(tall[i]);
		} System.out.println(tall[i]) System.out.println System.out System System.out tall[i] tall i String[] a a
import java.util.Scanner;

class Main {
	public static void main(String[] a){
		Scanner scan = new Scanner(System.in);
	
		int m;
		int[] tall;
		tall = new int[3];
		
		for(int i = 0; i < 10; i++){
			m = scan.nextInt();
			if(tall[0] < m){
				tall[2] = tall[1];
				tall[1] = tall[0];
				tall[0] = m;
			}else if(tall[1] < m){
				tall[2] = tall[1];
				tall[1] = m;
			}else if(tall[2] < m){
				tall[2] = m;
			}
		}
		for(int i = 0; i < 3; i++){
			System.out.println(tall[i]);
		}
	}
}