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

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

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