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


public class Main {

	public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		for(int i = 0; i < 10; i++){
			int tmp = sc.nextInt();
			list.add(tmp);
		}
		
		Collections.sort(list);
		Collections.reverse(list);
		
		for(int i = 0; i < 3; i++){
			int tmp = list.get(i);
			System.out.println(tmp);
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections 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<Integer>();
		
		for(int i = 0; i < 10; i++){
			int tmp = sc.nextInt();
			list.add(tmp);
		}
		
		Collections.sort(list);
		Collections.reverse(list);
		
		for(int i = 0; i < 3; i++){
			int tmp = list.get(i);
			System.out.println(tmp);
		}
	}
} Main public static void main(String[] args) {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		for(int i = 0; i < 10; i++){
			int tmp = sc.nextInt();
			list.add(tmp);
		}
		
		Collections.sort(list);
		Collections.reverse(list);
		
		for(int i = 0; i < 3; i++){
			int tmp = list.get(i);
			System.out.println(tmp);
		}
	} main {
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		
		for(int i = 0; i < 10; i++){
			int tmp = sc.nextInt();
			list.add(tmp);
		}
		
		Collections.sort(list);
		Collections.reverse(list);
		
		for(int i = 0; i < 3; i++){
			int tmp = list.get(i);
			System.out.println(tmp);
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() for(int i = 0; i < 10; i++){
			int tmp = sc.nextInt();
			list.add(tmp);
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			int tmp = sc.nextInt();
			list.add(tmp);
		} {
			int tmp = sc.nextInt();
			list.add(tmp);
		} int tmp = sc.nextInt(); tmp sc.nextInt() sc.nextInt sc list.add(tmp) list.add list tmp Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list for(int i = 0; i < 3; i++){
			int tmp = list.get(i);
			System.out.println(tmp);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			int tmp = list.get(i);
			System.out.println(tmp);
		} {
			int tmp = list.get(i);
			System.out.println(tmp);
		} int tmp = list.get(i); tmp list.get(i) list.get list i System.out.println(tmp) System.out.println System.out System System.out tmp String[] args args public class Main {

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

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


public class Main {

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