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


public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	}
	
	static int[] top3(int[] args) {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	}
} 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[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	}
	
	static int[] top3(int[] args) {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	}
} Main public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	} main {

		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] in = new int[10]; in new int[10] 10 for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			in[i] = sc.nextInt();
		} {
			in[i] = sc.nextInt();
		} in[i] = sc.nextInt() in[i] in i sc.nextInt() sc.nextInt sc sc.close() sc.close sc int[] result = top3(in); result top3(in) top3 in for(int i: result) System.out.println(i); int i result System.out.println(i); System.out.println(i) System.out.println System.out System System.out i String[] args args static int[] top3(int[] args) {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	} top3 {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	} int[] copy = Arrays.copyOf(args, args.length); copy Arrays.copyOf(args, args.length) Arrays.copyOf Arrays args args.length args args.length Arrays.sort(copy) Arrays.sort Arrays copy int[] result = new int[3]; result new int[3] 3 for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			result[i] = copy[copy.length - 1 - i];
		} {
			result[i] = copy[copy.length - 1 - i];
		} result[i] = copy[copy.length - 1 - i] result[i] result i copy[copy.length - 1 - i] copy copy.length - 1 - i copy.length - 1 - i copy.length copy copy.length 1 i return result; result int[] args args public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	}
	
	static int[] top3(int[] args) {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	}
} public class Main{
	
	public static void main(String[] args){

		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	}
	
	static int[] top3(int[] args) {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	}
} 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[] in = new int[10];
		for(int i = 0; i < 10; i++) {
			in[i] = sc.nextInt();
		}
		sc.close();
		int[] result = top3(in);
		for(int i: result) System.out.println(i);
	}
	
	static int[] top3(int[] args) {
		int[] copy = Arrays.copyOf(args, args.length);
		Arrays.sort(copy);
		int[] result = new int[3];
		for(int i = 0; i < 3; i++) {
			result[i] = copy[copy.length - 1 - i];
		}
		return result;
	}
}