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

public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[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[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	}
} Main public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1); br new BufferedReader(new InputStreamReader(System.in), 1) String str = ""; str "" int num[] = new int[10]; num new int[10] 10 int top[] = new int[3]; top new int[3] 3 for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		} {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		} str = br.readLine() str br.readLine() br.readLine br num[i] = Integer.parseInt(str) num[i] num i Integer.parseInt(str) Integer.parseInt Integer str if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			} top[0] < num[i] top[0] top 0 num[i] num i {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} top[2] = top[1] top[2] top 2 top[1] top 1 top[1] = top[0] top[1] top 1 top[0] top 0 top[0] = num[i] top[0] top 0 num[i] num i if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			} top[1] < num[i] top[1] top 1 num[i] num i {
				top[2] = top[1];
				top[1] = num[i];
			} top[2] = top[1] top[2] top 2 top[1] top 1 top[1] = num[i] top[1] top 1 num[i] num i if (top[2] < num[i]) {
				top[2] = num[i];
			} top[2] < num[i] top[2] top 2 num[i] num i {
				top[2] = num[i];
			} top[2] = num[i] top[2] top 2 num[i] num i System.out.println(top[0]) System.out.println System.out System System.out top[0] top 0 System.out.println(top[1]) System.out.println System.out System System.out top[1] top 1 System.out.println(top[2]) System.out.println System.out System System.out top[2] top 2 String[] a a public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	}
} public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
		String str = "";
		int num[] = new int[10];
		int top[] = new int[3];
		for (int i = 0; i < 10; i++) {
			str = br.readLine();
			num[i] = Integer.parseInt(str);
			if (top[0] < num[i]) {
				top[2] = top[1];
				top[1] = top[0];
				top[0] = num[i];
			} else if (top[1] < num[i]) {
				top[2] = top[1];
				top[1] = num[i];
			} else if (top[2] < num[i]) {
				top[2] = num[i];
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	}
}