import java.util.*;
public class Main{
    public static void main(String[] args){
	Scanner scan = new Scanner(System.in);
	List<Integer> list = new ArrayList<Integer>();
	for(int i = 0; i < 10; i++){
	    list.add(scan.nextInt());
	}

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

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

	Collections.sort(list);
	System.out.println(list.get(list.size()-1));
	System.out.println(list.get(list.size()-2));
	System.out.println(list.get(list.size()-3));
    } main {
	Scanner scan = new Scanner(System.in);
	List<Integer> list = new ArrayList<Integer>();
	for(int i = 0; i < 10; i++){
	    list.add(scan.nextInt());
	}

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

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

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

	Collections.sort(list);
	System.out.println(list.get(list.size()-1));
	System.out.println(list.get(list.size()-2));
	System.out.println(list.get(list.size()-3));
    }
}