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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[i]);
		}

	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[i]);
		}

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[i]);
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] hights = new int[10]; hights new int[10] 10 for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		} int i = 0 ; int i = 0 ; i 0 i < 10 i 10 i++ i++ i {
			hights[i] = Integer.parseInt(br.readLine());
		} {
			hights[i] = Integer.parseInt(br.readLine());
		} hights[i] = Integer.parseInt(br.readLine()) hights[i] hights i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(hights) Arrays.sort Arrays hights for(int i = 9; i > 6 ; i--){
			System.out.println(hights[i]);
		} int i = 9; int i = 9; i 9 i > 6 i 6 i-- i-- i {
			System.out.println(hights[i]);
		} {
			System.out.println(hights[i]);
		} System.out.println(hights[i]) System.out.println System.out System System.out hights[i] hights i String[] args args public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[i]);
		}

	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] hights = new int[10];

		for(int i = 0 ; i < 10 ; i++){
			hights[i] = Integer.parseInt(br.readLine());
		}

		Arrays.sort(hights);

		for(int i = 9; i > 6 ; i--){
			System.out.println(hights[i]);
		}

	}

}