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