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

public class Main {

    public static void main(String[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[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[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	}
    }

} Main public static void main(String[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	}
    } main {
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	}
    } String strLine =""; strLine "" BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in)); stdReader new BufferedReader(new InputStreamReader(System.in)) Integer[] hill = new Integer[10]; hill new Integer[10] 10 int i = 0; i 0 while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	} (strLine = stdReader.readLine()) != null (strLine = stdReader.readLine()) strLine stdReader.readLine() stdReader.readLine stdReader null {
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	} hill[i] = Integer.parseInt(strLine) hill[i] hill i Integer.parseInt(strLine) Integer.parseInt Integer strLine i++ i Arrays.sort(hill) Arrays.sort Arrays hill for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	} i = 9; i = 9 i 9 i >= 7 i 7 i-- i-- i {
    		System.out.println(hill[i]);
    	} {
    		System.out.println(hill[i]);
    	} System.out.println(hill[i]) System.out.println System.out System System.out hill[i] hill i String[] a a public class Main {

    public static void main(String[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	}
    }

} public class Main {

    public static void main(String[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[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[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	}
    }

}