import java.util.*;

public class Main {
    Scanner in = new Scanner(System.in);
    public static void main(String[] args) {
        new Main();
    }

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

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

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

    public Main(){
    	new AOJ().doIt();
    }
    
    class AOJ{
    	void doIt(){
    		ArrayList<Integer> list = new ArrayList<Integer>();
    		while(in.hasNext())list.add(in.nextInt());
    		Collections.sort(list);
    		for(int i=list.size()-1;i>=list.size()-3;i--)System.out.println(list.get(i));
    		
    	}
    }
    
} Main
import java.util.*;

public class Main {
    Scanner in = new Scanner(System.in);
    public static void main(String[] args) {
        new Main();
    }

    public Main(){
    	new AOJ().doIt();
    }
    
    class AOJ{
    	void doIt(){
    		ArrayList<Integer> list = new ArrayList<Integer>();
    		while(in.hasNext())list.add(in.nextInt());
    		Collections.sort(list);
    		for(int i=list.size()-1;i>=list.size()-3;i--)System.out.println(list.get(i));
    		
    	}
    }
    
}