import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}

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

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	} main {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	} int first=0 first 0 second=0 second 0 third=0; third 0 int set; set Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		} {
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		} set = sc.nextInt() set sc.nextInt() sc.nextInt sc if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			} first<set first set {
				third = second;
				second = first;
				first = set;
			} third = second third second second = first second first first = set first set if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			} second<set second set {
				third = second;
				second = set;
			} third = second third second second = set second set if(third<set){
				third = set;
			} third<set third set {
				third = set;
			} third = set third set System.out.println(first) System.out.println System.out System System.out first System.out.println(second) System.out.println System.out System System.out second System.out.println(third) System.out.println System.out System System.out third String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}

} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

		int first=0,second=0,third=0;
		int set;
		
		Scanner sc = new Scanner(System.in);
		
		for(int i=0;i<10;i++){
			
			set = sc.nextInt();
			
			if(first<set){
				third = second;
				second = first;
				first = set;
			}else if(second<set){
				third = second;
				second = set;
			}else if(third<set){
				third = set;
			}
			
		}
		
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}

}