import java.io.*;
class Main{
public  static void main(String[] args){
	String[] x = new String[10];
	int[] mountain=new int[10];
	try{
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	}catch(IOException e){
	    System.out.println(e.getMessage());

	}
	for(int i=0;i<10;i++)
	    mountain[i]=Integer.parseInt(x[i]);
	for(int i=0;i<10;i++)
	    for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		}

	for(int i=9;i>6;i--)
	    System.out.println(mountain[i]);
    }
} import java.io.*; io.* java class Main{
public  static void main(String[] args){
	String[] x = new String[10];
	int[] mountain=new int[10];
	try{
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	}catch(IOException e){
	    System.out.println(e.getMessage());

	}
	for(int i=0;i<10;i++)
	    mountain[i]=Integer.parseInt(x[i]);
	for(int i=0;i<10;i++)
	    for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		}

	for(int i=9;i>6;i--)
	    System.out.println(mountain[i]);
    }
} Main public  static void main(String[] args){
	String[] x = new String[10];
	int[] mountain=new int[10];
	try{
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	}catch(IOException e){
	    System.out.println(e.getMessage());

	}
	for(int i=0;i<10;i++)
	    mountain[i]=Integer.parseInt(x[i]);
	for(int i=0;i<10;i++)
	    for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		}

	for(int i=9;i>6;i--)
	    System.out.println(mountain[i]);
    } main {
	String[] x = new String[10];
	int[] mountain=new int[10];
	try{
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	}catch(IOException e){
	    System.out.println(e.getMessage());

	}
	for(int i=0;i<10;i++)
	    mountain[i]=Integer.parseInt(x[i]);
	for(int i=0;i<10;i++)
	    for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		}

	for(int i=9;i>6;i--)
	    System.out.println(mountain[i]);
    } String[] x = new String[10]; x new String[10] 10 int[] mountain=new int[10]; mountain new int[10] 10 try{
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	}catch(IOException e){
	    System.out.println(e.getMessage());

	} catch(IOException e){
	    System.out.println(e.getMessage());

	} IOException e {
	    System.out.println(e.getMessage());

	} System.out.println(e.getMessage()) System.out.println System.out System System.out e.getMessage() e.getMessage e {
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	} InputStreamReader is =new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) for(int i=0;i<10;i++)
	    x[i]=br.readLine(); int i=0; int i=0; i 0 i<10 i 10 i++ i++ i x[i]=br.readLine(); x[i]=br.readLine() x[i] x i br.readLine() br.readLine br for(int i=0;i<10;i++)
	    mountain[i]=Integer.parseInt(x[i]); int i=0; int i=0; i 0 i<10 i 10 i++ i++ i mountain[i]=Integer.parseInt(x[i]); mountain[i]=Integer.parseInt(x[i]) mountain[i] mountain i Integer.parseInt(x[i]) Integer.parseInt Integer x[i] x i for(int i=0;i<10;i++)
	    for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		} for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		} int j=1; int j=1; j 1 j<10 j 10 j++ j++ j if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		} if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		} mountain[j]<mountain[j-1] mountain[j] mountain j mountain[j-1] mountain j-1 j 1 {
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		} int t=mountain[j]; t mountain[j] mountain j mountain[j]=mountain[j-1] mountain[j] mountain j mountain[j-1] mountain j-1 j 1 mountain[j-1]=t mountain[j-1] mountain j-1 j 1 t for(int i=9;i>6;i--)
	    System.out.println(mountain[i]); int i=9; int i=9; i 9 i>6 i 6 i-- i-- i System.out.println(mountain[i]); System.out.println(mountain[i]) System.out.println System.out System System.out mountain[i] mountain i String[] args args
import java.io.*;
class Main{
public  static void main(String[] args){
	String[] x = new String[10];
	int[] mountain=new int[10];
	try{
	InputStreamReader is =new InputStreamReader(System.in);
	BufferedReader br = new BufferedReader(is);
     	for(int i=0;i<10;i++)
	    x[i]=br.readLine();
	}catch(IOException e){
	    System.out.println(e.getMessage());

	}
	for(int i=0;i<10;i++)
	    mountain[i]=Integer.parseInt(x[i]);
	for(int i=0;i<10;i++)
	    for(int j=1;j<10;j++)
		if(mountain[j]<mountain[j-1]){
		    int t=mountain[j];
		    mountain[j]=mountain[j-1];
		    mountain[j-1]=t;
		}

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