import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) throws IOException
	{
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	}

} import java.io.IOException; IOException java.io import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) throws IOException
	{
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	}

} Main public static void main(String[] args) throws IOException
	{
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	} main {
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int [] list = new int[10]; list new int[10] 10 int i i j; j for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		} i=0; i=0 i 0 i<10 i 10 i++ i++ i {
			list[i] = sc.nextInt();
		} {
			list[i] = sc.nextInt();
		} list[i] = sc.nextInt() list[i] list i sc.nextInt() sc.nextInt sc Arrays.sort(list) Arrays.sort Arrays list for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		} j=0; j=0 j 0 j<3 j 3 j++ j++ j {
			System.out.println(list[9-j]);
		} {
			System.out.println(list[9-j]);
		} System.out.println(list[9-j]) System.out.println System.out System System.out list[9-j] list 9-j 9 j String[] args args public class Main {
	public static void main(String[] args) throws IOException
	{
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	}

} public class Main {
	public static void main(String[] args) throws IOException
	{
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	}

} Main
import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) throws IOException
	{
		Scanner sc = new Scanner(System.in);
		
		int [] list = new int[10];
		int i,j;
		
		for(i=0;i<10;i++){
			list[i] = sc.nextInt();
		}
		Arrays.sort(list);
		
		for(j=0;j<3;j++){
			System.out.println(list[9-j]);
		}
	}

}