
import java.util.*;
import java.lang.*;
import java.util.Scanner;

public class Main
{
	public static void main (String[] arg)
	{
		int[] a=new int[10];
		Scanner in = new Scanner(System.in);
		for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		}
		Arrays.sort(a);
		for(int i=9 ; i>6 ;i--)
		{
		System.out.println(a[i]);
		}
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.util.Scanner; Scanner java.util public class Main
{
	public static void main (String[] arg)
	{
		int[] a=new int[10];
		Scanner in = new Scanner(System.in);
		for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		}
		Arrays.sort(a);
		for(int i=9 ; i>6 ;i--)
		{
		System.out.println(a[i]);
		}
	}
} Main public static void main (String[] arg)
	{
		int[] a=new int[10];
		Scanner in = new Scanner(System.in);
		for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		}
		Arrays.sort(a);
		for(int i=9 ; i>6 ;i--)
		{
		System.out.println(a[i]);
		}
	} main {
		int[] a=new int[10];
		Scanner in = new Scanner(System.in);
		for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		}
		Arrays.sort(a);
		for(int i=9 ; i>6 ;i--)
		{
		System.out.println(a[i]);
		}
	} int[] a=new int[10]; a new int[10] 10 Scanner in = new Scanner(System.in); in new Scanner(System.in) for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		} int i=0 ; int i=0 ; i 0 i<10 i 10 i++ i++ i {
			a[i] = in.nextInt();
			
		} {
			a[i] = in.nextInt();
			
		} a[i] = in.nextInt() a[i] a i in.nextInt() in.nextInt in 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[] arg arg public class Main
{
	public static void main (String[] arg)
	{
		int[] a=new int[10];
		Scanner in = new Scanner(System.in);
		for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		}
		Arrays.sort(a);
		for(int i=9 ; i>6 ;i--)
		{
		System.out.println(a[i]);
		}
	}
} public class Main
{
	public static void main (String[] arg)
	{
		int[] a=new int[10];
		Scanner in = new Scanner(System.in);
		for(int i=0 ; i<10 ;i++)
		{
			a[i] = in.nextInt();
			
		}
		Arrays.sort(a);
		for(int i=9 ; i>6 ;i--)
		{
		System.out.println(a[i]);
		}
	}
} Main

import java.util.*;
import java.lang.*;
import java.util.Scanner;

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