import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main{
	 public static void main(String[] args)throws IOException{
		 Scanner sc = new Scanner(System.in);
		 ArrayList<Integer> al = new ArrayList<Integer>();
		 for(int i = 0; i< 10; i++){
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 }
		 Collections.sort(al);
		 System.out.println(al.get(9));
		 System.out.println(al.get(8));
		 System.out.println(al.get(7));
    	
    }
} import java.io.IOException; IOException java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main{
	 public static void main(String[] args)throws IOException{
		 Scanner sc = new Scanner(System.in);
		 ArrayList<Integer> al = new ArrayList<Integer>();
		 for(int i = 0; i< 10; i++){
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 }
		 Collections.sort(al);
		 System.out.println(al.get(9));
		 System.out.println(al.get(8));
		 System.out.println(al.get(7));
    	
    }
} Main public static void main(String[] args)throws IOException{
		 Scanner sc = new Scanner(System.in);
		 ArrayList<Integer> al = new ArrayList<Integer>();
		 for(int i = 0; i< 10; i++){
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 }
		 Collections.sort(al);
		 System.out.println(al.get(9));
		 System.out.println(al.get(8));
		 System.out.println(al.get(7));
    	
    } main {
		 Scanner sc = new Scanner(System.in);
		 ArrayList<Integer> al = new ArrayList<Integer>();
		 for(int i = 0; i< 10; i++){
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 }
		 Collections.sort(al);
		 System.out.println(al.get(9));
		 System.out.println(al.get(8));
		 System.out.println(al.get(7));
    	
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> al = new ArrayList<Integer>(); al new ArrayList<Integer>() for(int i = 0; i< 10; i++){
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 } int i = 0; int i = 0; i 0 i< 10 i 10 i++ i++ i {
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 } {
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 } int w = sc.nextInt(); w sc.nextInt() sc.nextInt sc al.add(Integer.valueOf(w)) al.add al Integer.valueOf(w) Integer.valueOf Integer w Collections.sort(al) Collections.sort Collections al System.out.println(al.get(9)) System.out.println System.out System System.out al.get(9) al.get al 9 System.out.println(al.get(8)) System.out.println System.out System System.out al.get(8) al.get al 8 System.out.println(al.get(7)) System.out.println System.out System System.out al.get(7) al.get al 7 String[] args args
import java.io.IOException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main{
	 public static void main(String[] args)throws IOException{
		 Scanner sc = new Scanner(System.in);
		 ArrayList<Integer> al = new ArrayList<Integer>();
		 for(int i = 0; i< 10; i++){
			 int w = sc.nextInt();
			 al.add(Integer.valueOf(w));
		 }
		 Collections.sort(al);
		 System.out.println(al.get(9));
		 System.out.println(al.get(8));
		 System.out.println(al.get(7));
    	
    }
}