import java.util.*;

public class Main {
    public static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    }
} import java.util.*; util.* java public class Main {
    public static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    }
} Main public static final Scanner scn = new Scanner(System.in); scn new Scanner(System.in) public static void main(String[] args) {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    } main {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    } ArrayList<Integer> ali = new ArrayList<>(); ali new ArrayList<>() while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        } scn.hasNextInt() scn.hasNextInt scn {
            ali.add(scn.nextInt());
        } ali.add(scn.nextInt()) ali.add ali scn.nextInt() scn.nextInt scn Collections.sort(ali) Collections.sort Collections ali Collections.reverse(ali) Collections.reverse Collections ali for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            System.out.println(ali.get(i));
        } {
            System.out.println(ali.get(i));
        } System.out.println(ali.get(i)) System.out.println System.out System System.out ali.get(i) ali.get ali i String[] args args public class Main {
    public static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    }
} public class Main {
    public static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    }
} Main
import java.util.*;

public class Main {
    public static final Scanner scn = new Scanner(System.in);
    
    public static void main(String[] args) {
        ArrayList<Integer> ali = new ArrayList<>();
        while(scn.hasNextInt()) {
            ali.add(scn.nextInt());
        }
        Collections.sort(ali);
        Collections.reverse(ali);
        for(int i = 0; i < 3; i++) {
            System.out.println(ali.get(i));
        }
    }
}