import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

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

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

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

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

} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

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

}