import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

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

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	} main {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] data = new int[10]; data new int[10] 10 for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			data[i] = scan.nextInt();
		} {
			data[i] = scan.nextInt();
		} data[i] = scan.nextInt() data[i] data i scan.nextInt() scan.nextInt scan int afterData afterData beforeIndex; beforeIndex for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		} int i = 1; int i = 1; i 1 i < 10 i 10 i++ i++ i {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		} {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		} afterData = data[i] afterData data[i] data i beforeIndex = i - 1 beforeIndex i - 1 i 1 while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			} beforeIndex >= 0 && data[beforeIndex] > afterData beforeIndex >= 0 beforeIndex 0 data[beforeIndex] > afterData data[beforeIndex] data beforeIndex afterData {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			} data[beforeIndex + 1] = data[beforeIndex] data[beforeIndex + 1] data beforeIndex + 1 beforeIndex 1 data[beforeIndex] data beforeIndex beforeIndex-- beforeIndex data[beforeIndex + 1] = afterData data[beforeIndex + 1] data beforeIndex + 1 beforeIndex 1 afterData System.out.println(data[9]) System.out.println System.out System System.out data[9] data 9 System.out.println(data[8]) System.out.println System.out System System.out data[8] data 8 System.out.println(data[7]) System.out.println System.out System System.out data[7] data 7 scan.close() scan.close scan String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] data = new int[10];
		for (int i = 0; i < 10; i++) {
			data[i] = scan.nextInt();
		}

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

}