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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] height = new int[10];
		for(int i=0;i<10;i++) {
			height[i] = sc.nextInt();
		}
		Arrays.sort(height);
		for(int i=0;i<3;i++) {
			System.out.println(height[9-i]);
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] height = new int[10];
		for(int i=0;i<10;i++) {
			height[i] = sc.nextInt();
		}
		Arrays.sort(height);
		for(int i=0;i<3;i++) {
			System.out.println(height[9-i]);
		}
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] height = new int[10];
		for(int i=0;i<10;i++) {
			height[i] = sc.nextInt();
		}
		Arrays.sort(height);
		for(int i=0;i<3;i++) {
			System.out.println(height[9-i]);
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] height = new int[10];
		for(int i=0;i<10;i++) {
			height[i] = sc.nextInt();
		}
		Arrays.sort(height);
		for(int i=0;i<3;i++) {
			System.out.println(height[9-i]);
		}
	}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] height = new int[10];
		for(int i=0;i<10;i++) {
			height[i] = sc.nextInt();
		}
		Arrays.sort(height);
		for(int i=0;i<3;i++) {
			System.out.println(height[9-i]);
		}
	}

}