import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	} main {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	} int[] x= new int[3]; x new int[3] 3 int temp =0; temp 0 Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		} {
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		} temp =scanner.nextInt() temp scanner.nextInt() scanner.nextInt scanner if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     } temp>x[0] temp x[0] x 0 {
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     } x[2]=x[1] x[2] x 2 x[1] x 1 x[1]=x[0] x[1] x 1 x[0] x 0 x[0]=temp x[0] x 0 temp if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     } temp>x[1] temp x[1] x 1 {
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     } x[2]=x[1] x[2] x 2 x[1] x 1 x[1]=temp x[1] x 1 temp if(temp>x[2]){
		    	 x[2]=temp;
		     } temp>x[2] temp x[2] x 2 {
		    	 x[2]=temp;
		     } x[2]=temp x[2] x 2 temp scanner.close() scanner.close scanner for(int i =0; i<3; i++){
        System.out.println(x[i]);
		} int i =0; int i =0; i 0 i<3 i 3 i++ i++ i {
        System.out.println(x[i]);
		} {
        System.out.println(x[i]);
		} System.out.println(x[i]) System.out.println System.out System System.out x[i] x i String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	}

} Main
import java.util.*;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int[] x= new int[3];
		int temp =0;
		Scanner scanner = new Scanner(System.in);
		for(int i=0; i<10; i++){
		     temp =scanner.nextInt();
		    if(temp>x[0]){
		    	 x[2]=x[1];
		    	 x[1]=x[0];
		    	 x[0]=temp;
		     }else if(temp>x[1]){
		    	 x[2]=x[1];
		    	 x[1]=temp;
		     }else if(temp>x[2]){
		    	 x[2]=temp;
		     }
		}
		scanner.close();
		for(int i =0; i<3; i++){
        System.out.println(x[i]);
		}
	}

}