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

import static java.util.Arrays.*;
import static java.util.Collections.reverseOrder;

/**
 * Created by locona on 2016/06/02.
 */
public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    }
} import java.io.*; io.* java import java.util.*; util.* java import java.lang.*; lang.* java import static java.util.Arrays.*; import static java.util.Arrays.*; import static java.util.Arrays.*; import static java.util.Collections.reverseOrder; import static java.util.Collections.reverseOrder; import static java.util.Collections.reverseOrder; public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int i = 0; i 0 Integer [] mountains = new Integer[10]; mountains new Integer[10] 10 String line; line while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        } (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        } mountains[i++] = Integer.valueOf(line) mountains[i++] mountains i++ i Integer.valueOf(line) Integer.valueOf Integer line if(i >= 10) break; i >= 10 i 10 break; sort(mountains, Comparator.reverseOrder()) sort mountains Comparator.reverseOrder() Comparator.reverseOrder Comparator for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        } i=0; i=0 i 0 i < 3 i 3 i++ i++ i {
            out.println(mountains[i]);
        } {
            out.println(mountains[i]);
        } out.println(mountains[i]) out.println out mountains[i] mountains i out.flush() out.flush out String[] args args public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    }
} public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    }
} Main
import java.io.*;
import java.util.*;
import java.lang.*;

import static java.util.Arrays.*;
import static java.util.Collections.reverseOrder;

/**
 * Created by locona on 2016/06/02.
 */
public class Main  {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(System.out);
        int i = 0;
        Integer [] mountains = new Integer[10];
        String line;
        while((line = br.readLine()) != null) {
            mountains[i++] = Integer.valueOf(line);
            if(i >= 10) break;
        }
        sort(mountains, Comparator.reverseOrder());
        for(i=0; i < 3; i++) {
            out.println(mountains[i]);
        }
        out.flush();
    }
}