import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		//??????
		int tbl[] = new int[10];
		//
		int c = 9;
		int tmp;
		
		Scanner sc = new Scanner(System.in);
		
		//????????????????´?
		for(int i = 0; i < 10; i++) {
			tbl[i] = sc.nextInt();
		}
		
		//??´???(??????)
		while(c > 0) {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		}
		
		//??????
		for(int i = 0; i < 3; i++) {
			System.out.println(tbl[i]);
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {

		//??????
		int tbl[] = new int[10];
		//
		int c = 9;
		int tmp;
		
		Scanner sc = new Scanner(System.in);
		
		//????????????????´?
		for(int i = 0; i < 10; i++) {
			tbl[i] = sc.nextInt();
		}
		
		//??´???(??????)
		while(c > 0) {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		}
		
		//??????
		for(int i = 0; i < 3; i++) {
			System.out.println(tbl[i]);
		}
	}
} Main public static void main(String[] args) {

		//??????
		int tbl[] = new int[10];
		//
		int c = 9;
		int tmp;
		
		Scanner sc = new Scanner(System.in);
		
		//????????????????´?
		for(int i = 0; i < 10; i++) {
			tbl[i] = sc.nextInt();
		}
		
		//??´???(??????)
		while(c > 0) {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		}
		
		//??????
		for(int i = 0; i < 3; i++) {
			System.out.println(tbl[i]);
		}
	} main {

		//??????
		int tbl[] = new int[10];
		//
		int c = 9;
		int tmp;
		
		Scanner sc = new Scanner(System.in);
		
		//????????????????´?
		for(int i = 0; i < 10; i++) {
			tbl[i] = sc.nextInt();
		}
		
		//??´???(??????)
		while(c > 0) {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		}
		
		//??????
		for(int i = 0; i < 3; i++) {
			System.out.println(tbl[i]);
		}
	} int tbl[] = new int[10]; tbl new int[10] 10 int c = 9; c 9 int tmp; tmp Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i = 0; i < 10; i++) {
			tbl[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			tbl[i] = sc.nextInt();
		} {
			tbl[i] = sc.nextInt();
		} tbl[i] = sc.nextInt() tbl[i] tbl i sc.nextInt() sc.nextInt sc while(c > 0) {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		} c > 0 c 0 {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		} int i = 0; i 0 while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			} i < c i c {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			} if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				} tbl[i] < tbl[i+1] tbl[i] tbl i tbl[i+1] tbl i+1 i 1 {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				} tmp = tbl[i] tmp tbl[i] tbl i tbl[i] = tbl[i+1] tbl[i] tbl i tbl[i+1] tbl i+1 i 1 tbl[i+1] = tmp tbl[i+1] tbl i+1 i 1 tmp i++ i c-- c for(int i = 0; i < 3; i++) {
			System.out.println(tbl[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(tbl[i]);
		} {
			System.out.println(tbl[i]);
		} System.out.println(tbl[i]) System.out.println System.out System System.out tbl[i] tbl i String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {

		//??????
		int tbl[] = new int[10];
		//
		int c = 9;
		int tmp;
		
		Scanner sc = new Scanner(System.in);
		
		//????????????????´?
		for(int i = 0; i < 10; i++) {
			tbl[i] = sc.nextInt();
		}
		
		//??´???(??????)
		while(c > 0) {
			int i = 0;
			while(i < c) {
				if(tbl[i] < tbl[i+1]) {
					tmp = tbl[i];
					tbl[i] = tbl[i+1];
					tbl[i+1] = tmp;
				}
				i++;
			}
			c--;
		}
		
		//??????
		for(int i = 0; i < 3; i++) {
			System.out.println(tbl[i]);
		}
	}
}