import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	} main {
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] mtn = new int[10]; mtn new int[10] 10 for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i<mtn.length i mtn.length mtn mtn.length i++ i++ i {
			mtn[i] = sc.nextInt();
		} {
			mtn[i] = sc.nextInt();
		} mtn[i] = sc.nextInt() mtn[i] mtn i sc.nextInt() sc.nextInt sc for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		} int i = 0; int i = 0; i 0 i<mtn.length-1 i mtn.length-1 mtn.length mtn mtn.length 1 i++ i++ i {
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		} {
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		} for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			} int j = i+1; int j = i+1; j i+1 i 1 j<mtn.length j mtn.length mtn mtn.length j++ j++ j {
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			} {
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			} if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				} mtn[i] < mtn[j] mtn[i] mtn i mtn[j] mtn j {
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				} int tmp; tmp tmp = mtn[i] tmp mtn[i] mtn i mtn[i] = mtn[j] mtn[i] mtn i mtn[j] mtn j mtn[j] = tmp mtn[j] mtn j tmp for(int i = 0; i<3; i++)
			System.out.println(mtn[i]); int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i System.out.println(mtn[i]); System.out.println(mtn[i]) System.out.println System.out System System.out mtn[i] mtn i String[] args args public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	}
} Main
import java.util.Scanner;
public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] mtn = new int[10];
		for(int i = 0; i<mtn.length; i++){
			mtn[i] = sc.nextInt();
		}
		for(int i = 0; i<mtn.length-1; i++){
			for(int j = i+1; j<mtn.length; j++){
				if(mtn[i] < mtn[j]){
					int tmp;
					tmp = mtn[i];
					mtn[i] = mtn[j];
					mtn[j] = tmp;
				}
			}
		}
		for(int i = 0; i<3; i++)
			System.out.println(mtn[i]);
	}
}