/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		
		Scanner in = new Scanner(System.in);
		int x[]=new int[10];
		for(int i=0;i<10;i++){
			x[i]=in.nextInt();
		}
		for(int j=0;j<3;j++){
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		
		Scanner in = new Scanner(System.in);
		int x[]=new int[10];
		for(int i=0;i<10;i++){
			x[i]=in.nextInt();
		}
		for(int j=0;j<3;j++){
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		}
	}
} Main public static void main (String[] args) throws java.lang.Exception
	{
		
		Scanner in = new Scanner(System.in);
		int x[]=new int[10];
		for(int i=0;i<10;i++){
			x[i]=in.nextInt();
		}
		for(int j=0;j<3;j++){
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		}
	} main {
		
		Scanner in = new Scanner(System.in);
		int x[]=new int[10];
		for(int i=0;i<10;i++){
			x[i]=in.nextInt();
		}
		for(int j=0;j<3;j++){
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int x[]=new int[10]; x new int[10] 10 for(int i=0;i<10;i++){
			x[i]=in.nextInt();
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			x[i]=in.nextInt();
		} {
			x[i]=in.nextInt();
		} x[i]=in.nextInt() x[i] x i in.nextInt() in.nextInt in for(int j=0;j<3;j++){
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		} int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		} {
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		} int max=0; max 0 int k=0; k 0 for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			} {
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			} if(x[i]>max){
					k=i;
					max=x[i];
				} x[i]>max x[i] x i max {
					k=i;
					max=x[i];
				} k=i k i max=x[i] max x[i] x i System.out.println(x[k]) System.out.println System.out System System.out x[k] x k x[k]=0 x[k] x k 0 String[] args args
/* package whatever; // don't place package name! */

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

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
		
		Scanner in = new Scanner(System.in);
		int x[]=new int[10];
		for(int i=0;i<10;i++){
			x[i]=in.nextInt();
		}
		for(int j=0;j<3;j++){
			
			int max=0;
			int k=0;
			for(int i=0;i<10;i++)
			{
				if(x[i]>max){
					k=i;
					max=x[i];
				}
				
			}
			System.out.println(x[k]);
			x[k]=0;
			
		}
	}
}