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

public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	}
} 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 {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	}
} Main public static void main(String[] args) throws IOException {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	} main {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	} int[] Mountain = new int[10]; Mountain new int[10] 10 int i = 0; i 0 int first = 0 first 0 second = 0 second 0 third = 0; third 0 String line; line BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			} i = 0; i = 0 i 0 i < 10 i 10 i++ i++ i {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			} {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			} line = br.readLine() line br.readLine() br.readLine br Mountain[i] = Integer.parseInt(line) Mountain[i] Mountain i Integer.parseInt(line) Integer.parseInt Integer line if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				} Mountain[i] > first Mountain[i] Mountain i first {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} third = second third second second = first second first first = Mountain[i] first Mountain[i] Mountain i continue; if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				} Mountain[i] > second Mountain[i] Mountain i second {
					third = second;
					second = Mountain[i];
					continue;
				} third = second third second second = Mountain[i] second Mountain[i] Mountain i continue; if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				} Mountain[i] > third Mountain[i] Mountain i third {
					third = Mountain[i];
					continue;
				} third = Mountain[i] third Mountain[i] Mountain i continue; System.out.println(first) System.out.println System.out System System.out first System.out.println(second) System.out.println System.out System System.out second System.out.println(third) System.out.println System.out System System.out third String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		//?????°?¨????
        int[] Mountain = new int[10];
        int i = 0;
        int first = 0, second = 0, third = 0;
		String line;

		//???????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			for (i = 0; i < 10; i++) {
				line = br.readLine();
				Mountain[i] = Integer.parseInt(line);
				//????????????
				if (Mountain[i] > first) {
					third = second;
					second = first;
					first = Mountain[i];
					continue;
				} else if (Mountain[i] > second) {
					third = second;
					second = Mountain[i];
					continue;
				} else if (Mountain[i] > third) {
					third = Mountain[i];
					continue;
				}
			}
        System.out.println(first);
        System.out.println(second);
        System.out.println(third);
	}
}