
import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {

	public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	}
} Main public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	} main {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) int[] mountains = new int[10]; mountains new int[10] 10 int i = 0; i 0 while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        } true {
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        } String s = r.readLine(); s r.readLine() r.readLine r mountains[i++] = Integer.valueOf(s) mountains[i++] mountains i++ i Integer.valueOf(s) Integer.valueOf Integer s if(i >= 10) break; i >= 10 i 10 break; Arrays.sort(mountains) Arrays.sort Arrays mountains for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        } i = 9; i = 9 i 9 i > 6 i 6 i-- i-- i {
            System.out.println(mountains[i]);
        } {
            System.out.println(mountains[i]);
        } System.out.println(mountains[i]) System.out.println System.out System System.out mountains[i] mountains i String[] args args public class Main {

	public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	}
} public class Main {

	public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	}
} Main

import java.io.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {
        BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
        int[] mountains = new int[10];
        int i = 0;
        while(true){
            String s = r.readLine();
            mountains[i++] = Integer.valueOf(s);
            if(i >= 10) break;
        }
        Arrays.sort(mountains);
        for(i = 9; i > 6; i--) {
            System.out.println(mountains[i]);
        }
	}
}