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