import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	}
} import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	}
} Main public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int[] m = new int[10]; m new int[10] 10 int[] h = new int[3]; h new int[3] 3 for(int i=0; i<3; i++)
		{
			h[i] = -1;
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
			h[i] = -1;
		} {
			h[i] = -1;
		} h[i] = -1 h[i] h i -1 1 for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		} int i=0; int i=0; i 0 i<10 i 10 i++ i++ i {
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		} {
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		} m[i] = scanner.nextInt() m[i] m i scanner.nextInt() scanner.nextInt scanner if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			} h[0] < m[i] h[0] h 0 m[i] m i {		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			} h[0] = m[i] h[0] h 0 m[i] m i int r = 0; r 0 for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				} int j=1; int j=1; j 1 j<3 j 3 j++ j++ j {
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				} {
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				} if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					} h[j] < h[r] h[j] h j h[r] h r {
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					} int buf = h[r]; buf h[r] h r h[r] = h[j] h[r] h r h[j] h j h[j] = buf h[j] h j buf r = j r j for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		} int i=2; int i=2; i 2 i>=0 i 0 i-- i-- i {
			System.out.println(h[i]+"");
		} {
			System.out.println(h[i]+"");
		} System.out.println(h[i]+"") System.out.println System.out System System.out h[i]+"" h[i] h i "" String[] args args public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	}
} public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	}
} Main
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner scanner = new Scanner(System.in);
		int[] m = new int[10];
		int[] h = new int[3];
		
		
		for(int i=0; i<3; i++)
		{
			h[i] = -1;
		}
		
		for(int i=0; i<10; i++)
		{
			m[i] = scanner.nextInt();
			if(h[0] < m[i])
			{		
				h[0] = m[i];
				int r = 0;
				for(int j=1; j<3; j++)
				{
					if(h[j] < h[r])
					{
						int buf = h[r];
						h[r] = h[j];
						h[j] = buf;
						r = j;
					}
				}
			}
		}
		
		for(int i=2; i>=0; i--)
		{
			System.out.println(h[i]+"");
		}
	}
}