import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	}


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

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	}


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

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	} main {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int[] x = new int[10]; x new int[10] 10 for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		} int i =0; int i =0; i 0 i < x.length i x.length x x.length i++ i++ i {


			x[i] = stdin.nextInt();

		} {


			x[i] = stdin.nextInt();

		} x[i] = stdin.nextInt() x[i] x i stdin.nextInt() stdin.nextInt stdin int n = 0; n 0 n = 10 n 10 int buble =n*(n-1)/2; buble n*(n-1)/2 n*(n-1) n (n-1) n 1 2 for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   } int i = 0; int i = 0; i 0 i < buble i buble i++ i++ i {

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   } {

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   } for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    } int j = 0; int j = 0; j 0 j < n - 1 j n - 1 n 1 j++ j++ j {

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    } {

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    } if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	} x[j] < x[j + 1] x[j] x j x[j + 1] x j + 1 j 1 {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	} int temp = x[j]; temp x[j] x j x[j] = x[j + 1] x[j] x j x[j + 1] x j + 1 j 1 x[j + 1] = temp x[j + 1] x j + 1 j 1 temp for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {

			System.out.println(x[i]);

		} {

			System.out.println(x[i]);

		} System.out.println(x[i]) System.out.println System.out System System.out x[i] x i String[] args args public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	}


} public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	}


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

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

		for(int i =0; i < x.length; i++ ) {


			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

		for(int i = 0; i < 3; i++) {

			System.out.println(x[i]);

		}

	}


}