

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

/**
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001&lang=jp
 *
 *
 */
class Main{
    public static void main(String[] a) throws IOException{

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        }

    }

} 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 class Main{
    public static void main(String[] a) throws IOException{

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        }

    }

} Main public static void main(String[] a) throws IOException{

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        }

    } main {

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        }

    } try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        } {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) int[] data = new int[10]; data new int[10] 10 for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	} int i=0; int i=0; i 0 i<data.length i data.length data data.length i++ i++ i {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	} {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	} String line = br.readLine(); line br.readLine() br.readLine br int value = Integer.parseInt(line); value Integer.parseInt(line) Integer.parseInt Integer line data[i] = value data[i] data i value Arrays.sort(data) Arrays.sort Arrays data System.out.println(data[9]) System.out.println System.out System System.out data[9] data 9 System.out.println(data[8]) System.out.println System.out System System.out data[8] data 8 System.out.println(data[7]) System.out.println System.out System System.out data[7] data 7 String[] a a


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

/**
 * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0001&lang=jp
 *
 *
 */
class Main{
    public static void main(String[] a) throws IOException{

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

        	int[] data = new int[10];
        	for (int i=0; i<data.length; i++) {
        		String line = br.readLine();
        		int value = Integer.parseInt(line);
        		data[i] = value;
        	}

        	Arrays.sort(data);

        	System.out.println(data[9]);
        	System.out.println(data[8]);
        	System.out.println(data[7]);

        }

    }

}