import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{

	public static void main(String[] args) throws Exception{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int data_num = 10;
		int top = 3;
		int[] data = new int[data_num];

		for(int i = 0; i < data_num; i++){
			data[i] = Integer.parseInt(br.readLine());
		}

		for(int i = 0; i < data_num; i++){
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		}

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


	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{

	public static void main(String[] args) throws Exception{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int data_num = 10;
		int top = 3;
		int[] data = new int[data_num];

		for(int i = 0; i < data_num; i++){
			data[i] = Integer.parseInt(br.readLine());
		}

		for(int i = 0; i < data_num; i++){
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		}

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


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

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int data_num = 10;
		int top = 3;
		int[] data = new int[data_num];

		for(int i = 0; i < data_num; i++){
			data[i] = Integer.parseInt(br.readLine());
		}

		for(int i = 0; i < data_num; i++){
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		}

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


	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int data_num = 10;
		int top = 3;
		int[] data = new int[data_num];

		for(int i = 0; i < data_num; i++){
			data[i] = Integer.parseInt(br.readLine());
		}

		for(int i = 0; i < data_num; i++){
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		}

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


	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int data_num = 10; data_num 10 int top = 3; top 3 int[] data = new int[data_num]; data new int[data_num] data_num for(int i = 0; i < data_num; i++){
			data[i] = Integer.parseInt(br.readLine());
		} int i = 0; int i = 0; i 0 i < data_num i data_num i++ i++ i {
			data[i] = Integer.parseInt(br.readLine());
		} {
			data[i] = Integer.parseInt(br.readLine());
		} data[i] = Integer.parseInt(br.readLine()) data[i] data i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i = 0; i < data_num; i++){
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		} int i = 0; int i = 0; i 0 i < data_num i data_num i++ i++ i {
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		} {
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		} for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			} int j = data_num - 1; int j = data_num - 1; j data_num - 1 data_num 1 j > i j i j-- j-- j {
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			} {
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			} if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				} data[j - 1] < data[j] data[j - 1] data j - 1 j 1 data[j] data j {
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				} int temp = data[j - 1]; temp data[j - 1] data j - 1 j 1 data[j - 1] = data[j] data[j - 1] data j - 1 j 1 data[j] data j data[j] = temp data[j] data j temp for(int i = 0; i < top; i++){
			System.out.println(data[i]);
		} int i = 0; int i = 0; i 0 i < top i top i++ i++ i {
			System.out.println(data[i]);
		} {
			System.out.println(data[i]);
		} System.out.println(data[i]) System.out.println System.out System System.out data[i] data i String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;

class Main{

	public static void main(String[] args) throws Exception{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int data_num = 10;
		int top = 3;
		int[] data = new int[data_num];

		for(int i = 0; i < data_num; i++){
			data[i] = Integer.parseInt(br.readLine());
		}

		for(int i = 0; i < data_num; i++){
			for(int j = data_num - 1; j > i; j--){
				if(data[j - 1] < data[j]){
					int temp = data[j - 1];
					data[j - 1] = data[j];
					data[j] = temp;
				}
			}
		}

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


	}
}