/* Name of the class has to be "Main" only if the class is public. */
import java.util.Scanner;
import java.util.Arrays;

class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		int [] x = new int[10];
		
		Scanner cin = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {
     		x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for (int i = 9; i >= 7; i--) {
			 System.out.println(String.valueOf(x[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 [] x = new int[10];
		
		Scanner cin = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {
     		x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for (int i = 9; i >= 7; i--) {
			 System.out.println(String.valueOf(x[i]));
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		int [] x = new int[10];
		
		Scanner cin = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {
     		x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for (int i = 9; i >= 7; i--) {
			 System.out.println(String.valueOf(x[i]));
		}
	} main {
		int [] x = new int[10];
		
		Scanner cin = new Scanner(System.in);
		for (int i = 0; i < 10; i++) {
     		x[i] = cin.nextInt();
		}
		
		Arrays.sort(x);
		
		for (int i = 9; i >= 7; i--) {
			 System.out.println(String.valueOf(x[i]));
		}
	} int [] x = new int[10]; x new int[10] 10 Scanner cin = new Scanner(System.in); cin new Scanner(System.in) for (int i = 0; i < 10; i++) {
     		x[i] = cin.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
     		x[i] = cin.nextInt();
		} {
     		x[i] = cin.nextInt();
		} x[i] = cin.nextInt() x[i] x i cin.nextInt() cin.nextInt cin Arrays.sort(x) Arrays.sort Arrays x for (int i = 9; i >= 7; i--) {
			 System.out.println(String.valueOf(x[i]));
		} int i = 9; int i = 9; i 9 i >= 7 i 7 i-- i-- i {
			 System.out.println(String.valueOf(x[i]));
		} {
			 System.out.println(String.valueOf(x[i]));
		} System.out.println(String.valueOf(x[i])) System.out.println System.out System System.out String.valueOf(x[i]) String.valueOf String x[i] x i String[] args args
/* Name of the class has to be "Main" only if the class is public. */
import java.util.Scanner;
import java.util.Arrays;

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