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

public class Main {

	public static void main(String[] args) {
		 BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
			int[] height = new int[10];
			for (int i = 0; i < 10; i++) {
					try {
						
						height[i] = Integer.parseInt(reader.readLine());
					} catch (IOException e) {
						// TODO ????????????????????? catch ????????????
						e.printStackTrace();
					}
			}
			Arrays.sort(height);
			
			for(int i=9;i>6;i--){
				System.out.println(height[i]);
			}
		}
} 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 import java.util.Scanner; Scanner java.util public class Main {

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

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

	public static void main(String[] args) {
		 BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
			int[] height = new int[10];
			for (int i = 0; i < 10; i++) {
					try {
						
						height[i] = Integer.parseInt(reader.readLine());
					} catch (IOException e) {
						// TODO ????????????????????? catch ????????????
						e.printStackTrace();
					}
			}
			Arrays.sort(height);
			
			for(int i=9;i>6;i--){
				System.out.println(height[i]);
			}
		}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		 BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
			int[] height = new int[10];
			for (int i = 0; i < 10; i++) {
					try {
						
						height[i] = Integer.parseInt(reader.readLine());
					} catch (IOException e) {
						// TODO ????????????????????? catch ????????????
						e.printStackTrace();
					}
			}
			Arrays.sort(height);
			
			for(int i=9;i>6;i--){
				System.out.println(height[i]);
			}
		}
}