
import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String args[])
{
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

}
} import java.io.*; io.* java import java.util.Scanner; Scanner java.util public class Main {
public static void main(String args[])
{
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

}
} Main public static void main(String args[])
{
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

} main {
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

} int j; j Scanner in = new Scanner(System.in); in new Scanner(System.in) int height[]=new int[10]; height new int[10] 10 int i; i int x; x for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	} i=0; i=0 i 0 i<10 i 10 i++ i++ i {
		height[i]=in.nextInt();
		
	} {
		height[i]=in.nextInt();
		
	} height[i]=in.nextInt() height[i] height i in.nextInt() in.nextInt in for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
} i=0; i=0 i 0 i<10 i 10 i++ i++ i {
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
} {
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
} for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		} j=i+1; j=i+1 j i+1 i 1 j<10 j 10 j++ j++ j if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		} if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		} height[i]>height[j] height[i] height i height[j] height j {
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		} int temp=height[i]; temp height[i] height i height[i]=height[j] height[i] height i height[j] height j height[j]=temp height[j] height j temp for(i=9;i>6;i--)
{
	System.out.println(height[i]);
} i=9; i=9 i 9 i>6 i 6 i-- i-- i {
	System.out.println(height[i]);
} {
	System.out.println(height[i]);
} System.out.println(height[i]) System.out.println System.out System System.out height[i] height i String args[] args public class Main {
public static void main(String args[])
{
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

}
} public class Main {
public static void main(String args[])
{
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

}
} Main

import java.io.*;
import java.util.Scanner;
public class Main {
public static void main(String args[])
{
	int j;
	//Scanner a = new Scanner(System.in);
	Scanner in = new Scanner(System.in);
	//System.out.println("ENter the list");
	int height[]=new int[10];
	int i;
	//int j;
	int x;
	for(i=0;i<10;i++)
	{
		height[i]=in.nextInt();
		
	}
	/*for(i=0;i<10;i++)
	{
		System.out.print(height[i]+ " ");
	}
	*/
for(i=0;i<10;i++)
{
	for(j=i+1;j<10;j++)
		if(height[i]>height[j])
		{
			int temp=height[i];
			height[i]=height[j];
			height[j]=temp;
		}
}
//System.out.println("Sorted");
for(i=9;i>6;i--)
{
	System.out.println(height[i]);
}
	

}
}