import java.util.Scanner;

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

		int[] hills = new int[10];
		Scanner stdIn = new Scanner(System.in);

		for( int i=0; i<10; i++ ){
			hills[i] = stdIn.nextInt();
		}

		for( int i=0; i<9; i++ ){
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		}

		for( int i=0; i<3; i++ ){
			System.out.println(hills[i]);
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){

		int[] hills = new int[10];
		Scanner stdIn = new Scanner(System.in);

		for( int i=0; i<10; i++ ){
			hills[i] = stdIn.nextInt();
		}

		for( int i=0; i<9; i++ ){
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		}

		for( int i=0; i<3; i++ ){
			System.out.println(hills[i]);
		}
	}
} Main public static void main(String[] args){

		int[] hills = new int[10];
		Scanner stdIn = new Scanner(System.in);

		for( int i=0; i<10; i++ ){
			hills[i] = stdIn.nextInt();
		}

		for( int i=0; i<9; i++ ){
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		}

		for( int i=0; i<3; i++ ){
			System.out.println(hills[i]);
		}
	} main {

		int[] hills = new int[10];
		Scanner stdIn = new Scanner(System.in);

		for( int i=0; i<10; i++ ){
			hills[i] = stdIn.nextInt();
		}

		for( int i=0; i<9; i++ ){
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		}

		for( int i=0; i<3; i++ ){
			System.out.println(hills[i]);
		}
	} int[] hills = new int[10]; hills new int[10] 10 Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) for( int i=0; i<10; i++ ){
			hills[i] = stdIn.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			hills[i] = stdIn.nextInt();
		} {
			hills[i] = stdIn.nextInt();
		} hills[i] = stdIn.nextInt() hills[i] hills i stdIn.nextInt() stdIn.nextInt stdIn for( int i=0; i<9; i++ ){
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		} int i=0; int i=0; i 0 i<9 i 9 i++ i++ i {
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		} {
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		} for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			} int j=i+1; int j=i+1; j i+1 i 1 j<10 j 10 j++ j++ j {
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			} {
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			} if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				} hills[i] < hills[j] hills[i] hills i hills[j] hills j {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				} int tmp = hills[i]; tmp hills[i] hills i hills[i] = hills[j] hills[i] hills i hills[j] hills j hills[j] = tmp hills[j] hills j tmp for( int i=0; i<3; i++ ){
			System.out.println(hills[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			System.out.println(hills[i]);
		} {
			System.out.println(hills[i]);
		} System.out.println(hills[i]) System.out.println System.out System System.out hills[i] hills i String[] args args
import java.util.Scanner;

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

		int[] hills = new int[10];
		Scanner stdIn = new Scanner(System.in);

		for( int i=0; i<10; i++ ){
			hills[i] = stdIn.nextInt();
		}

		for( int i=0; i<9; i++ ){
			for( int j=i+1; j<10; j++ ){
				if( hills[i] < hills[j] ) {
					int tmp = hills[i];
					hills[i] = hills[j];
					hills[j] = tmp;
				}
			}
		}

		for( int i=0; i<3; i++ ){
			System.out.println(hills[i]);
		}
	}
}