import java.util.Arrays;
import java.util.Random;
import java.util.Scanner;
public class Main {
	
	public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
	Random ra=new Random();
	
	int[] a = new int[10];
	
	for(int i=0;i<10;i++)
		a[i]=sc.nextInt();
	Arrays.sort(a);

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

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

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

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

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

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

	for(int i = 9 ; i > 6 ; i--){
	    System.out.println(a[i]);
 	}
	}
	}