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