import java.util.Scanner;

public class Main {

	public static void main(String args[]) {

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

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

	public static void main(String args[]) {

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

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

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

	} main {

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

	} int i; i int j; j int temp; temp int first; first int second; second int third; third int[] mountain = new int[10]; mountain new int[10] 10 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		} i = 0; i = 0 i 0 i <10 i 10 i++ i++ i {

		mountain[i] = sc.nextInt();

		} {

		mountain[i] = sc.nextInt();

		} mountain[i] = sc.nextInt() mountain[i] mountain i sc.nextInt() sc.nextInt sc for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		} i = 0; i = 0 i 0 i <10 i 10 i++ i++ i {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		} {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		} for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			} j = 0; j = 0 j 0 j < 10 j 10 j++ j++ j {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			} {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			} if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				} mountain[i] < mountain[j] mountain[i] mountain i mountain[j] mountain j {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				} temp = mountain[i] temp mountain[i] mountain i mountain[i] = mountain[j] mountain[i] mountain i mountain[j] mountain j mountain[j] = temp mountain[j] mountain j temp first = mountain[0] first mountain[0] mountain 0 second = mountain[1] second mountain[1] mountain 1 third = mountain[2] third mountain[2] mountain 2 for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		} i = 9; i = 9 i 9 i > 6 i 6 i-- i-- i {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		} {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		} System.out.printf("%d",mountain[i] ) System.out.printf System.out System System.out "%d" mountain[i] mountain i System.out.println("") System.out.println System.out System System.out "" String args[] args public class Main {

	public static void main(String args[]) {

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

	}
} public class Main {

	public static void main(String args[]) {

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String args[]) {

		int i;
		int j;
		int temp;
		int first;
		int second;
		int third;

		int[] mountain = new int[10];

		Scanner sc = new Scanner(System.in);

		for(i = 0; i <10; i++) {

		mountain[i] = sc.nextInt();

		}

		for(i = 0; i <10; i++) {

			for(j = 0; j < 10; j++) {
				if( mountain[i] < mountain[j]) {


					temp = mountain[i];
					mountain[i] = mountain[j];
					mountain[j] = temp;
				}
			}
		}
		first = mountain[0];
		second = mountain[1];
		third = mountain[2];

		for(i = 9; i > 6; i--) {
		System.out.printf("%d",mountain[i] );
		System.out.println("");


		}

	}
}