import java.util.Arrays;
import java.util.Scanner;

public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);
	
	public static void main(String[] args) {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);
	
	public static void main(String[] args) {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
}

} Main static Scanner sc =  new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) public static void main(String[] args) {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
} main {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc int d = sc.nextInt(); d sc.nextInt() sc.nextInt sc int e = sc.nextInt(); e sc.nextInt() sc.nextInt sc int f = sc.nextInt(); f sc.nextInt() sc.nextInt sc int g = sc.nextInt(); g sc.nextInt() sc.nextInt sc int h = sc.nextInt(); h sc.nextInt() sc.nextInt sc int i = sc.nextInt(); i sc.nextInt() sc.nextInt sc int j = sc.nextInt(); j sc.nextInt() sc.nextInt sc int [] array = new int [] {a,b,c,d,e,f,g,h,i,j}; array new int [] {a,b,c,d,e,f,g,h,i,j} Arrays.sort(array) Arrays.sort Arrays array for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	} int n = 9; int n = 9; n 9 n >= 7 n 7 n-- n-- n {
		System.out.println( array[n] );
	} {
		System.out.println( array[n] );
	} System.out.println( array[n] ) System.out.println System.out System System.out array[n] array n String[] args args public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);
	
	public static void main(String[] args) {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
}

} public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);
	
	public static void main(String[] args) {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
	
	static Scanner sc =  new java.util.Scanner(System.in);
	
	public static void main(String[] args) {
	
	int a = sc.nextInt();
	int b = sc.nextInt();
	int c = sc.nextInt();
	int d = sc.nextInt();
	int e = sc.nextInt();
	int f = sc.nextInt();
	int g = sc.nextInt();
	int h = sc.nextInt();
	int i = sc.nextInt();
	int j = sc.nextInt();
			
	int [] array = new int [] {a,b,c,d,e,f,g,h,i,j};
	Arrays.sort(array);
	
	for ( int n = 9; n >= 7 ; n--){
		System.out.println( array[n] );
	}
}

}