import java.util.*;
import java.io.*;

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

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