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

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

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

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