import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
} Main public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    } main {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; array {1, 1, 1, 1, 1,1, 1, 1, 1, 1} 1 1 1 1 1 1 1 1 1 1 for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        } int i = 0; int i = 0; i 0 i < 10 i 10 ++i ++i i {
        	array[i] = sc.nextInt();
        } {
        	array[i] = sc.nextInt();
        } array[i] = sc.nextInt() array[i] array i sc.nextInt() sc.nextInt sc Arrays.sort(array, Comparator.reverseOrder()) Arrays.sort Arrays array Comparator.reverseOrder() Comparator.reverseOrder Comparator for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        } int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
            System.out.println(array[i]);
        } {
            System.out.println(array[i]);
        } System.out.println(array[i]) System.out.println System.out System System.out array[i] array i String args[] args public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
} public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
}