import java.util.*;
import java.io.*;

class Main{
	public static void main(String args[])throws IOException{
	 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	 int num[]=new int[10];	 
	for(int i=0;i<10;i++){
	  num[i]=Integer.parseInt(br.readLine());
	}
	Arrays.sort(num);
	for(int j=9;j>6;j--){
	System.out.println(num[j]);
	}
}} import java.util.*; util.* java import java.io.*; io.* java class Main{
	public static void main(String args[])throws IOException{
	 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	 int num[]=new int[10];	 
	for(int i=0;i<10;i++){
	  num[i]=Integer.parseInt(br.readLine());
	}
	Arrays.sort(num);
	for(int j=9;j>6;j--){
	System.out.println(num[j]);
	}
}} Main public static void main(String args[])throws IOException{
	 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	 int num[]=new int[10];	 
	for(int i=0;i<10;i++){
	  num[i]=Integer.parseInt(br.readLine());
	}
	Arrays.sort(num);
	for(int j=9;j>6;j--){
	System.out.println(num[j]);
	}
} main {
	 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	 int num[]=new int[10];	 
	for(int i=0;i<10;i++){
	  num[i]=Integer.parseInt(br.readLine());
	}
	Arrays.sort(num);
	for(int j=9;j>6;j--){
	System.out.println(num[j]);
	}
} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int num[]=new int[10]; num new int[10] 10 for(int i=0;i<10;i++){
	  num[i]=Integer.parseInt(br.readLine());
	} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
	  num[i]=Integer.parseInt(br.readLine());
	} {
	  num[i]=Integer.parseInt(br.readLine());
	} num[i]=Integer.parseInt(br.readLine()) num[i] num i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(num) Arrays.sort Arrays num for(int j=9;j>6;j--){
	System.out.println(num[j]);
	} int j=9; int j=9; j 9 j>6 j 6 j-- j-- j {
	System.out.println(num[j]);
	} {
	System.out.println(num[j]);
	} System.out.println(num[j]) System.out.println System.out System System.out num[j] num j String args[] args
import java.util.*;
import java.io.*;

class Main{
	public static void main(String args[])throws IOException{
	 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	 int num[]=new int[10];	 
	for(int i=0;i<10;i++){
	  num[i]=Integer.parseInt(br.readLine());
	}
	Arrays.sort(num);
	for(int j=9;j>6;j--){
	System.out.println(num[j]);
	}
}}