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

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

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