import java.util.*;


public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	}
	public static void sort(Integer[] mlist){
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	}
	
} import java.util.*; util.* java public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	}
	public static void sort(Integer[] mlist){
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	}
	
} Main public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer[] mount = new Integer[10]; mount new Integer[10] 10 int i = 0; i 0 while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		} sc.hasNext() sc.hasNext sc {
			mount[i] = sc.nextInt();
			i++;
		} mount[i] = sc.nextInt() mount[i] mount i sc.nextInt() sc.nextInt sc i++ i sort(mount) sort mount sc.close() sc.close sc String args[] args public static void sort(Integer[] mlist){
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	} sort {
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	} Arrays.sort(mlist) Arrays.sort Arrays mlist for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		} int i=9; int i=9; i 9 i >= 7 i 7 i-- i-- i {
			System.out.println(mlist[i]);
		} {
			System.out.println(mlist[i]);
		} System.out.println(mlist[i]) System.out.println System.out System System.out mlist[i] mlist i Integer[] mlist mlist public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	}
	public static void sort(Integer[] mlist){
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	}
	
} public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	}
	public static void sort(Integer[] mlist){
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	}
	
} Main
import java.util.*;


public class Main {
	public static void main(String args[])throws Exception{
		Scanner sc = new Scanner(System.in);
		Integer[] mount = new Integer[10];
		int i = 0;
		while(sc.hasNext()){
			mount[i] = sc.nextInt();
			i++;
		}
		sort(mount);
		sc.close();
	}
	public static void sort(Integer[] mlist){
		Arrays.sort(mlist);
		for(int i=9; i >= 7; i--){
			System.out.println(mlist[i]);
		}
	}
	
}