
class Main
{
	public static void main(String[] av)
	{
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int [] vec = new int[10];
		int j = 0;
		while( sc.hasNextInt() && j < 10 )
		{
			vec[j++] = ( sc.nextInt() );	
		}
		java.util.Arrays.sort( vec );
		for ( int i = 0; i < 3; ++i )
		{
			System.out.println( vec[9-i] );
		}
	}
} class Main
{
	public static void main(String[] av)
	{
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int [] vec = new int[10];
		int j = 0;
		while( sc.hasNextInt() && j < 10 )
		{
			vec[j++] = ( sc.nextInt() );	
		}
		java.util.Arrays.sort( vec );
		for ( int i = 0; i < 3; ++i )
		{
			System.out.println( vec[9-i] );
		}
	}
} Main public static void main(String[] av)
	{
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int [] vec = new int[10];
		int j = 0;
		while( sc.hasNextInt() && j < 10 )
		{
			vec[j++] = ( sc.nextInt() );	
		}
		java.util.Arrays.sort( vec );
		for ( int i = 0; i < 3; ++i )
		{
			System.out.println( vec[9-i] );
		}
	} main {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int [] vec = new int[10];
		int j = 0;
		while( sc.hasNextInt() && j < 10 )
		{
			vec[j++] = ( sc.nextInt() );	
		}
		java.util.Arrays.sort( vec );
		for ( int i = 0; i < 3; ++i )
		{
			System.out.println( vec[9-i] );
		}
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int [] vec = new int[10]; vec new int[10] 10 int j = 0; j 0 while( sc.hasNextInt() && j < 10 )
		{
			vec[j++] = ( sc.nextInt() );	
		} sc.hasNextInt() && j < 10 sc.hasNextInt() sc.hasNextInt sc j < 10 j 10 {
			vec[j++] = ( sc.nextInt() );	
		} vec[j++] = ( sc.nextInt() ) vec[j++] vec j++ j ( sc.nextInt() ) sc.nextInt sc java.util.Arrays.sort( vec ) java.util.Arrays.sort java.util.Arrays java.util java java.util java.util.Arrays vec for ( int i = 0; i < 3; ++i )
		{
			System.out.println( vec[9-i] );
		} int i = 0; int i = 0; i 0 i < 3 i 3 ++i ++i i {
			System.out.println( vec[9-i] );
		} {
			System.out.println( vec[9-i] );
		} System.out.println( vec[9-i] ) System.out.println System.out System System.out vec[9-i] vec 9-i 9 i String[] av av

class Main
{
	public static void main(String[] av)
	{
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int [] vec = new int[10];
		int j = 0;
		while( sc.hasNextInt() && j < 10 )
		{
			vec[j++] = ( sc.nextInt() );	
		}
		java.util.Arrays.sort( vec );
		for ( int i = 0; i < 3; ++i )
		{
			System.out.println( vec[9-i] );
		}
	}
}