import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }
} Main public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    } main {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    } List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        } scanner.hasNext() scanner.hasNext scanner {
            list.add(Integer.parseInt(scanner.next()));
        } list.add(Integer.parseInt(scanner.next())) list.add list Integer.parseInt(scanner.next()) Integer.parseInt Integer scanner.next() scanner.next scanner Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            System.out.println(list.get(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 String[] args args public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }
} public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }
} Main
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }
}