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

public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	}
} Main public static void main(String[] a) {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	} main {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	} BufferedReader br; br br=new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) int[] mountains=new int[10]; mountains new int[10] 10 for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        } int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        } {
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        } try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            } IOException e {
                e.printStackTrace();
            } e.printStackTrace() e.printStackTrace e {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } String str=br.readLine(); str br.readLine() br.readLine br mountains[i]=Integer.parseInt(str) mountains[i] mountains i Integer.parseInt(str) Integer.parseInt Integer str for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		} int h=mountains.length-1; int h=mountains.length-1; h mountains.length-1 mountains.length mountains mountains.length 1 h>0 h 0 h-- h-- h {
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		} {
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		} for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			} int i=1; int i=1; i 1 i<=h i h i++ i++ i {
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			} {
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			} if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				} mountains[i]>mountains[i-1] mountains[i] mountains i mountains[i-1] mountains i-1 i 1 {
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				} int tmp=mountains[i]; tmp mountains[i] mountains i mountains[i]= mountains[i-1] mountains[i] mountains i mountains[i-1] mountains i-1 i 1 mountains[i-1]=tmp mountains[i-1] mountains i-1 i 1 tmp for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		} int i=0; int i=0; i 0 i<3 i 3 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[] a a public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	}
} public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	}
} Main

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

public class Main {
	public static void main(String[] a) {
		BufferedReader br;
		br=new BufferedReader(new InputStreamReader(System.in));
		int[] mountains=new int[10];
        for(int i=0;i<10;i++){
            try {
                String str=br.readLine();
                mountains[i]=Integer.parseInt(str);
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
		for(int h=mountains.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(mountains[i]>mountains[i-1]){
					int tmp=mountains[i];
					mountains[i]= mountains[i-1];
					mountains[i-1]=tmp;
				}
			}
		}
		for(int i=0;i<3;i++){
			System.out.println(mountains[i]);
		}
	}
}