import java.util.*;
import java.util.Arrays;
public class Main {

	private static Scanner sc;

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

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

	private static Scanner sc;

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

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

 } main {
		sc = new Scanner(System.in);
		int []a=new int [10];
		for(int i=0;i<a.length;i++){
			a[i]=sc.nextInt();
		}
		Arrays.sort(a);
		for(int i=9;i>6;i--){
			System.out.println(a[i]);
		}
		

 } sc = new Scanner(System.in) sc new Scanner(System.in) int []a=new int [10]; a new int [10] 10 for(int i=0;i<a.length;i++){
			a[i]=sc.nextInt();
		} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
			a[i]=sc.nextInt();
		} {
			a[i]=sc.nextInt();
		} a[i]=sc.nextInt() a[i] a i sc.nextInt() sc.nextInt sc Arrays.sort(a) Arrays.sort Arrays a for(int i=9;i>6;i--){
			System.out.println(a[i]);
		} int i=9; int i=9; i 9 i>6 i 6 i-- i-- i {
			System.out.println(a[i]);
		} {
			System.out.println(a[i]);
		} System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args public class Main {

	private static Scanner sc;

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

 }
} public class Main {

	private static Scanner sc;

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

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

	private static Scanner sc;

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

 }
}