import java.io.*;

class Main{
	public static void main(String args[]){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		int num[] = new int[10];
		for(int i=0;i<10;i++){
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		}
		for(int i=0;i<10;i++){
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		}
		
		for(int i=0;i<3;i++){
			System.out.println(num[i]);
		}
	}
} import java.io.*; io.* java class Main{
	public static void main(String args[]){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		int num[] = new int[10];
		for(int i=0;i<10;i++){
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		}
		for(int i=0;i<10;i++){
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		}
		
		for(int i=0;i<3;i++){
			System.out.println(num[i]);
		}
	}
} Main public static void main(String args[]){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		int num[] = new int[10];
		for(int i=0;i<10;i++){
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		}
		for(int i=0;i<10;i++){
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		}
		
		for(int i=0;i<3;i++){
			System.out.println(num[i]);
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		int num[] = new int[10];
		for(int i=0;i<10;i++){
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		}
		for(int i=0;i<10;i++){
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		}
		
		for(int i=0;i<3;i++){
			System.out.println(num[i]);
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int num[] = new int[10]; num new int[10] 10 for(int i=0;i<10;i++){
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		} {
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		} try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			} catch(IOException e){
				
			} IOException e {
				
			} {
				num[i] = Integer.parseInt(reader.readLine());
			} num[i] = Integer.parseInt(reader.readLine()) num[i] num i Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader for(int i=0;i<10;i++){
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		} {
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		} for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			} int k=0; int k=0; k 0 k<10-1 k 10-1 10 1 k++ k++ k {
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			} {
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			} if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				} num[k]<num[k+1] num[k] num k num[k+1] num k+1 k 1 {
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				} int tmp = num[k]; tmp num[k] num k num[k] = num[k+1] num[k] num k num[k+1] num k+1 k 1 num[k+1] = tmp num[k+1] num k+1 k 1 tmp for(int i=0;i<3;i++){
			System.out.println(num[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			System.out.println(num[i]);
		} {
			System.out.println(num[i]);
		} System.out.println(num[i]) System.out.println System.out System System.out num[i] num i String args[] args
import java.io.*;

class Main{
	public static void main(String args[]){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		int num[] = new int[10];
		for(int i=0;i<10;i++){
			try{
				num[i] = Integer.parseInt(reader.readLine());
			}
			catch(IOException e){
				
			}
		}
		for(int i=0;i<10;i++){
			for(int k=0;k<10-1;k++){
				if(num[k]<num[k+1]){
					int tmp = num[k];
					num[k] = num[k+1];
					num[k+1] = tmp;
				}
			}
		}
		
		for(int i=0;i<3;i++){
			System.out.println(num[i]);
		}
	}
}