import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		}catch (IOException e){
			System.out.println(e);
		}
	}
} import java.io.*; io.* java class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		}catch (IOException e){
			System.out.println(e);
		}
	}
} Main public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		}catch (IOException e){
			System.out.println(e);
		}
	} main {
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		}catch (IOException e){
			System.out.println(e);
		}
	} BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try{
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		}catch (IOException e){
			System.out.println(e);
		} catch (IOException e){
			System.out.println(e);
		} IOException e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		} int n1=0 n1 0 n2=0 n2 0 n3=0; n3 0 for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			} int i = 0; int i = 0; i 0 i<10 i 10 ++i ++i i {
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			} {
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			} String line = reader.readLine(); line reader.readLine() reader.readLine reader int n = Integer.parseInt(line); n Integer.parseInt(line) Integer.parseInt Integer line if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				} n1 <= n n1 n {
					n3 = n2;
					n2 = n1;
					n1 = n;
				} n3 = n2 n3 n2 n2 = n1 n2 n1 n1 = n n1 n if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				} n2<=n n2 n {
					n3=n2;
					n2=n;
				} n3=n2 n3 n2 n2=n n2 n if(n3<=n){
					n3=n;
				} n3<=n n3 n {
					n3=n;
				} n3=n n3 n System.out.println(n1) System.out.println System.out System System.out n1 System.out.println(n2) System.out.println System.out System System.out n2 System.out.println(n3) System.out.println System.out System System.out n3 String[] args args
import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		try{
			int n1=0,n2=0,n3=0;
			for(int i = 0;i<10;++i){
				String line = reader.readLine();
				int n = Integer.parseInt(line);
				if(n1 <= n){
					n3 = n2;
					n2 = n1;
					n1 = n;
				}
				else if(n2<=n){
					n3=n2;
					n2=n;
				}
				else if(n3<=n){
					n3=n;
				}
			}
			System.out.println(n1);
			System.out.println(n2);
			System.out.println(n3);
		}catch (IOException e){
			System.out.println(e);
		}
	}
}