import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Collections.sort(input, Collections.reverseOrder());
        for(int i=0; i<3; i++) System.out.println(input.get(i));
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Collections.sort(input, Collections.reverseOrder());
        for(int i=0; i<3; i++) System.out.println(input.get(i));
    }
} Main public static void main(String[] args) throws NumberFormatException, IOException {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Collections.sort(input, Collections.reverseOrder());
        for(int i=0; i<3; i++) System.out.println(input.get(i));
    } main {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Collections.sort(input, Collections.reverseOrder());
        for(int i=0; i<3; i++) System.out.println(input.get(i));
    } ArrayList<Integer> input = new ArrayList<Integer>(); input new ArrayList<Integer>() BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine())); int i=0; int i=0; i 0 i<10 i 10 i++ i++ i input.add(Integer.parseInt(br.readLine())); input.add(Integer.parseInt(br.readLine())) input.add input Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Collections.sort(input, Collections.reverseOrder()) Collections.sort Collections input Collections.reverseOrder() Collections.reverseOrder Collections for(int i=0; i<3; i++) System.out.println(input.get(i)); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i System.out.println(input.get(i)); System.out.println(input.get(i)) System.out.println System.out System System.out input.get(i) input.get input i String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;

class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Collections.sort(input, Collections.reverseOrder());
        for(int i=0; i<3; i++) System.out.println(input.get(i));
    }
}