import java.math.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] hills = new int[10];
		for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		}
		Arrays.sort(hills);
		for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		}
	}
} import java.math.*; math.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] hills = new int[10];
		for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		}
		Arrays.sort(hills);
		for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] hills = new int[10];
		for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		}
		Arrays.sort(hills);
		for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		}
	} main {
		Scanner in = new Scanner(System.in);
		int[] hills = new int[10];
		for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		}
		Arrays.sort(hills);
		for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int[] hills = new int[10]; hills new int[10] 10 for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			hills[i] = in.nextInt() * -1;
		} {
			hills[i] = in.nextInt() * -1;
		} hills[i] = in.nextInt() * -1 hills[i] hills i in.nextInt() * -1 in.nextInt() in.nextInt in -1 1 Arrays.sort(hills) Arrays.sort Arrays hills for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(hills[i] * -1);
		} {
			System.out.println(hills[i] * -1);
		} System.out.println(hills[i] * -1) System.out.println System.out System System.out hills[i] * -1 hills[i] hills i -1 1 String[] args args public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] hills = new int[10];
		for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		}
		Arrays.sort(hills);
		for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int[] hills = new int[10];
		for (int i = 0; i < 10; i++) {
			hills[i] = in.nextInt() * -1;
		}
		Arrays.sort(hills);
		for (int i = 0; i < 3; i++) {
			System.out.println(hills[i] * -1);
		}
	}
} Main
import java.math.*;
import java.util.*;

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