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

class Main{
    public static void main(String[] args) throws IOException{
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Arrays; Arrays java.util import java.io.IOException; IOException java.io class Main{
    public static void main(String[] args) throws IOException{
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    }
} Main public static void main(String[] args) throws IOException{
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    } main {
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    } int arr[] = new int[10]; arr new int[10] 10 if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		} args.length == 0 args.length args args.length 0 {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		} BufferedReader br = new BufferedReader(new    InputStreamReader(System.in)); br new BufferedReader(new    InputStreamReader(System.in)) for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
	            arr[i] = Integer.parseInt(br.readLine());
	        } {
	            arr[i] = Integer.parseInt(br.readLine());
	        } arr[i] = Integer.parseInt(br.readLine()) arr[i] arr i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(arr) Arrays.sort Arrays arr for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        } int i=9; int i=9; i 9 i > 6 i 6 i-- i-- i {
	            System.out.println(arr[i]);
	        } {
	            System.out.println(arr[i]);
	        } System.out.println(arr[i]) System.out.println System.out System System.out arr[i] arr i {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		} for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		} {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		} for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			} int j=0; int j=0; j 0 j<=i j i j++ j++ j {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			} {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			} int height1 = Integer.parseInt(args[i]); height1 Integer.parseInt(args[i]) Integer.parseInt Integer args[i] args i int height2 = Integer.parseInt(args[j]); height2 Integer.parseInt(args[j]) Integer.parseInt Integer args[j] args j if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				} height1>height2 height1 height2 {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				} String temp = args[i]; temp args[i] args i args[i] = args[j] args[i] args i args[j] args j args[j] = temp args[j] args j temp for(int i=0;i<3;i++)
			System.out.println(args[i]); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i System.out.println(args[i]); System.out.println(args[i]) System.out.println System.out System System.out args[i] args i String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.io.IOException;

class Main{
    public static void main(String[] args) throws IOException{
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    }
}