import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

class Main {
	public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		ArrayList<Integer> List = new ArrayList<Integer>();

		try {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util class Main {
	public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		ArrayList<Integer> List = new ArrayList<Integer>();

		try {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
} Main public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		ArrayList<Integer> List = new ArrayList<Integer>();

		try {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} catch (Exception e) {
			System.out.println("Exception!");
		}
	} main {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		ArrayList<Integer> List = new ArrayList<Integer>();

		try {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} catch (Exception e) {
			System.out.println("Exception!");
		}
	} InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) ArrayList<Integer> List = new ArrayList<Integer>(); List new ArrayList<Integer>() try {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} catch (Exception e) {
			System.out.println("Exception!");
		} catch (Exception e) {
			System.out.println("Exception!");
		} Exception e {
			System.out.println("Exception!");
		} System.out.println("Exception!") System.out.println System.out System System.out "Exception!" {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			} {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			} String buf = br.readLine(); buf br.readLine() br.readLine br List.add(Integer.parseInt(buf)) List.add List Integer.parseInt(buf) Integer.parseInt Integer buf Collections.sort(List) Collections.sort Collections List Collections.reverse(List) Collections.reverse Collections List for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
				System.out.println(List.get(i));
			} {
				System.out.println(List.get(i));
			} System.out.println(List.get(i)) System.out.println System.out System System.out List.get(i) List.get List i String args[] args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;

class Main {
	public static void main (String args[]) {
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		ArrayList<Integer> List = new ArrayList<Integer>();

		try {
			for (int i=0;i<10;i++) {
				String buf = br.readLine();
				List.add(Integer.parseInt(buf));
			}
			Collections.sort(List);
			Collections.reverse(List);
			for (int i=0;i<3;i++) {
				System.out.println(List.get(i));
			}

		} catch (Exception e) {
			System.out.println("Exception!");
		}
	}
}