
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

		yama = new int[10];
		for(int i = 0 ;i < 10 ;i++){
			yama[i] = sc.nextInt();
		}
		for(int i = 0 ;i < yama.length ;i++){
			for(int j = i+1 ; j <yama.length ;j++){
				if(yama[i] < yama[j]){
					work = yama[i];
					yama[i] = yama[j];
					yama[j] = work;
				}
			}
		}
		for(int i = 0 ;i < 3 ;i++){
			System.out.println(yama[i]);
		}
	}

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

	public static void main(String[] args) {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

		yama = new int[10];
		for(int i = 0 ;i < 10 ;i++){
			yama[i] = sc.nextInt();
		}
		for(int i = 0 ;i < yama.length ;i++){
			for(int j = i+1 ; j <yama.length ;j++){
				if(yama[i] < yama[j]){
					work = yama[i];
					yama[i] = yama[j];
					yama[j] = work;
				}
			}
		}
		for(int i = 0 ;i < 3 ;i++){
			System.out.println(yama[i]);
		}
	}

} Main public static void main(String[] args) {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

		yama = new int[10];
		for(int i = 0 ;i < 10 ;i++){
			yama[i] = sc.nextInt();
		}
		for(int i = 0 ;i < yama.length ;i++){
			for(int j = i+1 ; j <yama.length ;j++){
				if(yama[i] < yama[j]){
					work = yama[i];
					yama[i] = yama[j];
					yama[j] = work;
				}
			}
		}
		for(int i = 0 ;i < 3 ;i++){
			System.out.println(yama[i]);
		}
	} main {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

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

	public static void main(String[] args) {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

		yama = new int[10];
		for(int i = 0 ;i < 10 ;i++){
			yama[i] = sc.nextInt();
		}
		for(int i = 0 ;i < yama.length ;i++){
			for(int j = i+1 ; j <yama.length ;j++){
				if(yama[i] < yama[j]){
					work = yama[i];
					yama[i] = yama[j];
					yama[j] = work;
				}
			}
		}
		for(int i = 0 ;i < 3 ;i++){
			System.out.println(yama[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

		yama = new int[10];
		for(int i = 0 ;i < 10 ;i++){
			yama[i] = sc.nextInt();
		}
		for(int i = 0 ;i < yama.length ;i++){
			for(int j = i+1 ; j <yama.length ;j++){
				if(yama[i] < yama[j]){
					work = yama[i];
					yama[i] = yama[j];
					yama[j] = work;
				}
			}
		}
		for(int i = 0 ;i < 3 ;i++){
			System.out.println(yama[i]);
		}
	}

} Main

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		int[] yama;
		int work;

		Scanner sc = new Scanner(System.in);

		yama = new int[10];
		for(int i = 0 ;i < 10 ;i++){
			yama[i] = sc.nextInt();
		}
		for(int i = 0 ;i < yama.length ;i++){
			for(int j = i+1 ; j <yama.length ;j++){
				if(yama[i] < yama[j]){
					work = yama[i];
					yama[i] = yama[j];
					yama[j] = work;
				}
			}
		}
		for(int i = 0 ;i < 3 ;i++){
			System.out.println(yama[i]);
		}
	}

}