import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;

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

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