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);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	}

} 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);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	}

} Main public static void main(String []args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	} main {
		Scanner sc = new Scanner(System.in);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) List<Integer> arrays = new ArrayList<Integer>(); arrays new ArrayList<Integer>() for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
             int a = sc.nextInt();
             arrays.add(a);
		} {
             int a = sc.nextInt();
             arrays.add(a);
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc arrays.add(a) arrays.add arrays a Collections.sort(arrays) Collections.sort Collections arrays for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		} int j = arrays.size(); int j = arrays.size(); j arrays.size() arrays.size arrays j >arrays.size()-3 j arrays.size()-3 arrays.size() arrays.size arrays 3 j-- j-- j {
			System.out.println(arrays.get(j - 1));
		} {
			System.out.println(arrays.get(j - 1));
		} System.out.println(arrays.get(j - 1)) System.out.println System.out System System.out arrays.get(j - 1) arrays.get arrays j - 1 j 1 String []args args public class Main {

	public static void main(String []args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	}

} public class Main {

	public static void main(String []args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	}

} 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);
		List<Integer> arrays = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
             int a = sc.nextInt();
             arrays.add(a);
		}

		Collections.sort(arrays);

		for(int j = arrays.size(); j >arrays.size()-3; j--) {
			System.out.println(arrays.get(j - 1));
		}
	}

}