import java.util.Scanner;
   
class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
   
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
   
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
   
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
   
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    }
} Main public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
   
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
   
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    } main {
        Scanner stdIn = new Scanner(System.in);
   
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
   
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int i; i int[] height = new int[10]; height new int[10] 10 int[] h = new int[]{0, 0, 0}; h new int[]{0, 0, 0} for(i = 0; i < 10; i++){
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        } i = 0; i = 0 i 0 i < 10 i 10 i++ i++ i {
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        } {
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        } height[i] = stdIn.nextInt() height[i] height i stdIn.nextInt() stdIn.nextInt stdIn if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i]; h[0] <= height[i] h[0] h 0 height[i] height i {
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } h[2] = h[1] h[2] h 2 h[1] h 1 h[1] = h[0] h[1] h 1 h[0] h 0 h[0] = height[i] h[0] h 0 height[i] height i if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i]; h[1] <= height[i] h[1] h 1 height[i] height i {
                h[2] = h[1];
                h[1] = height[i];
            } h[2] = h[1] h[2] h 2 h[1] h 1 h[1] = height[i] h[1] h 1 height[i] height i if(h[2] <= height[i])
                h[2] = height[i]; h[2] <= height[i] h[2] h 2 height[i] height i h[2] = height[i] h[2] h 2 height[i] height i for(int j = 0; j < 3; j++)
            System.out.println(h[j]); int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j System.out.println(h[j]); System.out.println(h[j]) System.out.println System.out System System.out h[j] h j String[] args args
import java.util.Scanner;
   
class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
   
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = stdIn.nextInt();
   
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
   
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    }
}