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



public class Main {
	public static void main(String[] args) throws IOException{
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[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[] args) throws IOException{
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        }
	}
} Main public static void main(String[] args) throws IOException{
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        }
	} main {
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        }
	} BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int [] mountainsheight= new int[10]; mountainsheight new int[10] 10 for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        } {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        } mountainsheight[i]=Integer.parseInt(br.readLine()) mountainsheight[i] mountainsheight i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        } int i = 0; int i = 0; i 0 i < mountainsheight.length-1 i mountainsheight.length-1 mountainsheight.length mountainsheight mountainsheight.length 1 i++ i++ i {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        } {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        } for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	} int j = i + 1; int j = i + 1; j i + 1 i 1 j < mountainsheight.length j mountainsheight.length mountainsheight mountainsheight.length j++ j++ j {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	} {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	} if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		} mountainsheight[i] < mountainsheight[j] mountainsheight[i] mountainsheight i mountainsheight[j] mountainsheight j {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		} int temporary = mountainsheight[i]; temporary mountainsheight[i] mountainsheight i mountainsheight[i] = mountainsheight[j] mountainsheight[i] mountainsheight i mountainsheight[j] mountainsheight j mountainsheight[j] = temporary mountainsheight[j] mountainsheight j temporary for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
        	System.out.println(mountainsheight[i]);
        } {
        	System.out.println(mountainsheight[i]);
        } System.out.println(mountainsheight[i]) System.out.println System.out System System.out mountainsheight[i] mountainsheight i String[] args args public class Main {
	public static void main(String[] args) throws IOException{
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        }
	}
} public class Main {
	public static void main(String[] args) throws IOException{
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        }
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;



public class Main {
	public static void main(String[] args) throws IOException{
	    BufferedReader br= new BufferedReader(new InputStreamReader(System.in));
	    int [] mountainsheight= new int[10];
        for (int i = 0; i < 10; i++) {
        	mountainsheight[i]=Integer.parseInt(br.readLine());
        }
        
        for (int i = 0; i < mountainsheight.length-1; i++) {
        	for (int j = i + 1; j < mountainsheight.length; j++) {
        		if (mountainsheight[i] < mountainsheight[j]) {
        			int temporary = mountainsheight[i];
        			mountainsheight[i] = mountainsheight[j];
        			mountainsheight[j] = temporary;
        		}
        	}
        }
        
        for (int i = 0; i < 3; i++) {
        	System.out.println(mountainsheight[i]);
        }
	}
}