import java.util.Scanner;

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

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

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

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

} Main
import java.util.Scanner;

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

}