import java.util.Arrays;
import java.util.Scanner;

public class Main{
	public static void main(String[]args) {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[]args) {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	}

} Main public static void main(String[]args) {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	} main {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	} int higth[] = new int[10]; higth new int[10] 10 Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す int i=0; int i=0; i 0 i<10 i 10 i++ i++ i higth[i]=sc.nextInt();//入力を10回繰り返す higth[i]=sc.nextInt() higth[i] higth i sc.nextInt() sc.nextInt sc Arrays.sort(higth) Arrays.sort Arrays higth System.out.println(higth[9]) System.out.println System.out System System.out higth[9] higth 9 System.out.println(higth[8]) System.out.println System.out System System.out higth[8] higth 8 System.out.println(higth[7]) System.out.println System.out System System.out higth[7] higth 7 String[]args args public class Main{
	public static void main(String[]args) {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	}

} public class Main{
	public static void main(String[]args) {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	}

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

public class Main{
	public static void main(String[]args) {
		int higth[] = new int[10];
		Scanner sc = new Scanner(System.in);
		for(int i=0; i<10 ; i++)higth[i]=sc.nextInt();//入力を10回繰り返す
		Arrays.sort(higth);
		System.out.println(higth[9]);
		System.out.println(higth[8]);
		System.out.println(higth[7]);

	}

}
