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