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

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	} main {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int[] data = new int[10]; data new int[10] 10 try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} NumberFormatException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} IOException e {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
				data[i] = Integer.parseInt(in.readLine());
			} {
				data[i] = Integer.parseInt(in.readLine());
			} data[i] = Integer.parseInt(in.readLine()) data[i] data i Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in Arrays.sort(data) Arrays.sort Arrays data for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
				System.out.println(data[9 - i]);
			} {
				System.out.println(data[9 - i]);
			} System.out.println(data[9 - i]) System.out.println System.out System System.out data[9 - i] data 9 - i 9 i String[] args args public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {
	public static void main(String[] args) {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

		int[] data = new int[10];
		try {
			for (int i = 0; i < 10; i++) {
				data[i] = Integer.parseInt(in.readLine());
			}
			Arrays.sort(data);
			
			for (int i = 0; i < 3; i++) {
				System.out.println(data[9 - i]);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}