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