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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	}

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

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str; str String[] heightstr = new String[10]; heightstr new String[10] 10 int[] heightint = new int[10]; heightint new int[10] 10 for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		} int i = 0; int i = 0; i 0 i <= 9 i 9 i++ i++ i {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		} {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		} str = br.readLine() str br.readLine() br.readLine br heightstr[i] = str heightstr[i] heightstr i str heightint[i] = Integer.parseInt(heightstr[i]) heightint[i] heightint i Integer.parseInt(heightstr[i]) Integer.parseInt Integer heightstr[i] heightstr i for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		} int j = 0; int j = 0; j 0 j <= 8 j 8 j++ j++ j {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		} {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		} for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			} int k = j + 1; int k = j + 1; k j + 1 j 1 k <= 9 k 9 k++ k++ k {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			} {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			} Boolean isBig = heightint[j] < heightint[k]; isBig heightint[j] < heightint[k] heightint[j] heightint j heightint[k] heightint k if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				} isBig {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				} int temporary = heightint[j]; temporary heightint[j] heightint j heightint[j] = heightint[k] heightint[j] heightint j heightint[k] heightint k heightint[k] = temporary heightint[k] heightint k temporary System.out.println(heightint[0]) System.out.println System.out System System.out heightint[0] heightint 0 System.out.println(heightint[1]) System.out.println System.out System System.out heightint[1] heightint 1 System.out.println(heightint[2]) System.out.println System.out System System.out heightint[2] heightint 2 String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		String[] heightstr = new String[10];
		int[] heightint = new int[10];

		for (int i = 0; i <= 9; i++) {
			str = br.readLine();
			heightstr[i] = str;
			heightint[i] = Integer.parseInt(heightstr[i]);
		}
		for (int j = 0; j <= 8; j++) {
			for (int k = j + 1; k <= 9; k++) {
				Boolean isBig = heightint[j] < heightint[k];
				if (isBig) {
					int temporary = heightint[j];
					heightint[j] = heightint[k];
					heightint[k] = temporary;
				}
			}
		}
		System.out.println(heightint[0]);
		System.out.println(heightint[1]);
		System.out.println(heightint[2]);
	}

}