import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] h = new int[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; 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[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; 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[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; i<=3; i++){
			System.out.println(h[i]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int[] h = new int[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; i<=3; i++){
			System.out.println(h[i]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] h = new int[11]; h new int[11] 11 int hz = 0; hz 0 for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		} int i=1; int i=1; i 1 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=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		} int i=9; int i=9; i 9 i>=1 i 1 i-- i-- i {
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		} {
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		} for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			} int j=1; int j=1; j 1 j<=i j i j++ j++ j {
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			} {
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			} if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				} h[j] <= h[j+1] h[j] h j h[j+1] h j+1 j 1 {
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				} hz = h[j+1] hz h[j+1] h j+1 j 1 h[j+1] = h[j] h[j+1] h j+1 j 1 h[j] h j h[j] =hz h[j] h j hz for(int i=1; i<=3; i++){
			System.out.println(h[i]);
		} int i=1; int i=1; i 1 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[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; 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[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; 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[11];
		int hz = 0;
		for(int i=1; i<=10; i++){
			h[i] = sc.nextInt();
		}
		for(int i=9; i>=1; i--){
			for(int j=1; j<=i; j++){
				if(h[j] <= h[j+1]){
					hz = h[j+1];
					h[j+1] = h[j];
					h[j] =hz;
				}
			}
		}
		for(int i=1; i<=3; i++){
			System.out.println(h[i]);
		}
	}
}