

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) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[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 public class Main{

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		}
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		}
	} main {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int heights[] = new int[10]; heights new int[10] 10 for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			heights[i] = Integer.parseInt(br.readLine());
		} {
			heights[i] = Integer.parseInt(br.readLine());
		} heights[i] = Integer.parseInt(br.readLine()) heights[i] heights i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(heights) Arrays.sort Arrays heights for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		} int i = 9; int i = 9; i 9 i >= 7 i 7 i-- i-- i {
			System.out.println(heights[i]);
		} {
			System.out.println(heights[i]);
		} System.out.println(heights[i]) System.out.println System.out System System.out heights[i] heights i String[] args args public class Main{

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		}
	}

} public class Main{

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		}
	}

} 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) throws NumberFormatException, IOException {
		// TODO Auto-generated method stub
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int heights[] = new int[10];
		for (int i = 0; i < 10; i++) {
			heights[i] = Integer.parseInt(br.readLine());
		}
		
		Arrays.sort(heights);
		
		for (int i = 9; i >= 7; i--) {
			System.out.println(heights[i]);
		}
	}

}