import java.util.Scanner;
	class Main{

		public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	int MOUNTAIN[]=new int[10];
	for(int i=0;i<10;i++){
		MOUNTAIN[i]=sc.nextInt();
	}
	for(int i=1;i<10;i++){
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	}
	for(int i=9;i!=6;i--){
		System.out.println(MOUNTAIN[i]);
	}
		}
	} import java.util.Scanner; Scanner java.util class Main{

		public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	int MOUNTAIN[]=new int[10];
	for(int i=0;i<10;i++){
		MOUNTAIN[i]=sc.nextInt();
	}
	for(int i=1;i<10;i++){
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	}
	for(int i=9;i!=6;i--){
		System.out.println(MOUNTAIN[i]);
	}
		}
	} Main public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	int MOUNTAIN[]=new int[10];
	for(int i=0;i<10;i++){
		MOUNTAIN[i]=sc.nextInt();
	}
	for(int i=1;i<10;i++){
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	}
	for(int i=9;i!=6;i--){
		System.out.println(MOUNTAIN[i]);
	}
		} main {
	Scanner sc=new Scanner(System.in);
	int MOUNTAIN[]=new int[10];
	for(int i=0;i<10;i++){
		MOUNTAIN[i]=sc.nextInt();
	}
	for(int i=1;i<10;i++){
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	}
	for(int i=9;i!=6;i--){
		System.out.println(MOUNTAIN[i]);
	}
		} Scanner sc=new Scanner(System.in); sc new Scanner(System.in) int MOUNTAIN[]=new int[10]; MOUNTAIN new int[10] 10 for(int i=0;i<10;i++){
		MOUNTAIN[i]=sc.nextInt();
	} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
		MOUNTAIN[i]=sc.nextInt();
	} {
		MOUNTAIN[i]=sc.nextInt();
	} MOUNTAIN[i]=sc.nextInt() MOUNTAIN[i] MOUNTAIN i sc.nextInt() sc.nextInt sc for(int i=1;i<10;i++){
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	} int i=1; int i=1; i 1 i<10 i 10 i++ i++ i {
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	} {
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	} for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		} int j=0; int j=0; j 0 j<10-i j 10-i 10 i j++ j++ j {
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		} {
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		} if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			} MOUNTAIN[j]>MOUNTAIN[j+1] MOUNTAIN[j] MOUNTAIN j MOUNTAIN[j+1] MOUNTAIN j+1 j 1 {
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			} int taihi; taihi taihi = MOUNTAIN[j] taihi MOUNTAIN[j] MOUNTAIN j MOUNTAIN[j]=MOUNTAIN[j+1] MOUNTAIN[j] MOUNTAIN j MOUNTAIN[j+1] MOUNTAIN j+1 j 1 MOUNTAIN[j+1]=taihi MOUNTAIN[j+1] MOUNTAIN j+1 j 1 taihi for(int i=9;i!=6;i--){
		System.out.println(MOUNTAIN[i]);
	} int i=9; int i=9; i 9 i!=6 i 6 i-- i-- i {
		System.out.println(MOUNTAIN[i]);
	} {
		System.out.println(MOUNTAIN[i]);
	} System.out.println(MOUNTAIN[i]) System.out.println System.out System System.out MOUNTAIN[i] MOUNTAIN i String[] args args
import java.util.Scanner;
	class Main{

		public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	int MOUNTAIN[]=new int[10];
	for(int i=0;i<10;i++){
		MOUNTAIN[i]=sc.nextInt();
	}
	for(int i=1;i<10;i++){
		for(int j=0;j<10-i;j++){
			if(MOUNTAIN[j]>MOUNTAIN[j+1]){
				int taihi;
				taihi = MOUNTAIN[j];
				MOUNTAIN[j]=MOUNTAIN[j+1];
				MOUNTAIN[j+1]=taihi;
			}
			
		}
	}
	for(int i=9;i!=6;i--){
		System.out.println(MOUNTAIN[i]);
	}
		}
	}