import java.util.*;
public class Main {
	public static void main(String[] args){
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	}

} Main public static void main(String[] args){
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	} main {
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	} Scanner sc= new Scanner (System.in); sc new Scanner (System.in) int a[]; a a  = new int[10] a new int[10] 10 for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	} int b=0; int b=0; b 0 b<10 b 10 b++ b++ b {
	 		a[b]=sc.nextInt();
	 	} {
	 		a[b]=sc.nextInt();
	 	} a[b]=sc.nextInt() a[b] a b sc.nextInt() sc.nextInt sc Arrays.sort (a) Arrays.sort Arrays a System.out.println(a[9]) System.out.println System.out System System.out a[9] a 9 System.out.println(a[8]) System.out.println System.out System System.out a[8] a 8 System.out.println(a[7]) System.out.println System.out System System.out a[7] a 7 String[] args args public class Main {
	public static void main(String[] args){
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	}

} public class Main {
	public static void main(String[] args){
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
	 Scanner sc= new Scanner (System.in);
	int a[];
	 a  = new int[10];
	 	for(int b=0;b<10;b++){
	 		a[b]=sc.nextInt();
	 	}

	 
	 Arrays.sort (a);
	System.out.println(a[9]);
	System.out.println(a[8]);
	System.out.println(a[7]);
	
	}

}