import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	}	
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	}	
} Main public static void main(String[] args) {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	} main {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	} int[] Num; Num Num = new int[11] Num new int[11] 11 Scanner n=new Scanner(System.in); n new Scanner(System.in) for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
				Num[i]=n.nextInt();
		} {
				Num[i]=n.nextInt();
		} Num[i]=n.nextInt() Num[i] Num i n.nextInt() n.nextInt n for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				} int a = 9; int a = 9; a 9 a >= 0 a 0 a-- a-- a {
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				} {
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				} for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				} int b = 0; int b = 0; b 0 b < a b a b++ b++ b {
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				} {
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				} if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						} Num[b] < Num[b+1] Num[b] Num b Num[b+1] Num b+1 b 1 {
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						} Num[10]=Num[b] Num[10] Num 10 Num[b] Num b Num[b]=Num[b+1] Num[b] Num b Num[b+1] Num b+1 b 1 Num[b+1]=Num[10] Num[b+1] Num b+1 b 1 Num[10] Num 10 System.out.println(Num[0]) System.out.println System.out System System.out Num[0] Num 0 System.out.println(Num[1]) System.out.println System.out System System.out Num[1] Num 1 System.out.println(Num[2]) System.out.println System.out System System.out Num[2] Num 2 String[] args args public class Main {
	public static void main(String[] args) {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	}	
} public class Main {
	public static void main(String[] args) {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	}	
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		int[] Num;
		Num = new int[11];
		Scanner n=new Scanner(System.in);
			for (int i = 0; i < 10;i++){
				Num[i]=n.nextInt();
		}
		
			for (int a = 9; a >= 0; a--){
				for (int b = 0; b < a; b++){
						if (Num[b] < Num[b+1]){
						Num[10]=Num[b];
						Num[b]=Num[b+1];
						Num[b+1]=Num[10];
						}
				}
				}
		
		System.out.println(Num[0]);
		System.out.println(Num[1]);
		System.out.println(Num[2]);
	}	
}