import java.util.Scanner;


public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	} main {
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a=0 a 0 b=0 b 0 c =0; c 0 int[] n= new int[10]; n new int[10] 10 for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		} {
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		} n[i]=sc.nextInt() n[i] n i sc.nextInt() sc.nextInt sc if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			} n[i]>a n[i] n i a {
				c=b;
				b=a;
				a=n[i];
			} c=b c b b=a b a a=n[i] a n[i] n i if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			} n[i]>b n[i] n i b {
				c=b;
				b=n[i];
			} c=b c b b=n[i] b n[i] n i if(n[i]>c){
				c=n[i];
			} n[i]>c n[i] n i c {
				c=n[i];
			} c=n[i] c n[i] n i System.out.println(a) System.out.println System.out System System.out a System.out.println(b) System.out.println System.out System System.out b System.out.println(c) System.out.println System.out System System.out c String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a=0,b=0,c =0;
		int[] n= new int[10];
		for(int i=0;i<10;i++){
			n[i]=sc.nextInt();
			if(n[i]>a){
				c=b;
				b=a;
				a=n[i];
			}else if(n[i]>b){
				c=b;
				b=n[i];
			}else if(n[i]>c){
				c=n[i];
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}