import java.util.Scanner;
import java.util.Arrays;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	}
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	}
} Main public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	} main {
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) int [] array = new int[10]; array new int[10] 10 for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        } int i = 0 ; int i = 0 ; i 0 i < array.length i array.length array array.length i++ i++ i {
            array[i] = input.nextInt();
        } {
            array[i] = input.nextInt();
        } array[i] = input.nextInt() array[i] array i input.nextInt() input.nextInt input Arrays.sort( array ) Arrays.sort Arrays array for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        } int i = 9 ; int i = 9 ; i 9 i > 6 i 6 i-- i-- i {
            System.out.println(array[i]);
        } {
            System.out.println(array[i]);
        } System.out.println(array[i]) System.out.println System.out System System.out array[i] array i String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	}
} Main
import java.util.Scanner;
import java.util.Arrays;
public class Main
{
	public static void main(String args[])
	{
		Scanner input = new Scanner(System.in);
		int [] array = new int[10];
        for(int i = 0 ; i < array.length ; i++) {
            array[i] = input.nextInt();
        }
        Arrays.sort( array );
        for ( int i = 9 ; i > 6 ; i-- ) {
            System.out.println(array[i]);
        }
	}
}