import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) throws Exception {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	}

} Main public static void main(String[] args) throws Exception {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	} main {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	} int first = 0; first 0 int second = 0; second 0 int third = 0; third 0 int temp; temp Scanner input = new Scanner(System.in); input new Scanner(System.in) for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		} {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		} temp = input.nextInt() temp input.nextInt() input.nextInt input if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			} temp > first temp first {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			} int temp2 = first; temp2 first first = temp first temp temp = temp2 temp temp2 if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				} temp > second temp second {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				} int temp3 = second; temp3 second second = temp second temp temp = temp3 temp temp3 if(temp3 > third) {
						third = temp3;
					} temp3 > third temp3 third {
						third = temp3;
					} third = temp3 third temp3 if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			} temp > second temp second {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			} int temp3 = second; temp3 second second = temp second temp temp = temp3 temp temp3 if(temp3 > third) {
					third = temp3;
				} temp3 > third temp3 third {
					third = temp3;
				} third = temp3 third temp3 if(temp > third) {
				third = temp;
			} temp > third temp third {
				third = temp;
			} third = temp third temp System.out.println(first) System.out.println System.out System System.out first System.out.println(second) System.out.println System.out System System.out second System.out.println(third) System.out.println System.out System System.out third String[] args args public class Main {

	public static void main(String[] args) throws Exception {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	}

} public class Main {

	public static void main(String[] args) throws Exception {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws Exception {
		int first = 0;
		int second = 0;
		int third = 0;
		int temp;
		Scanner input = new Scanner(System.in);
		
		for(int i = 0; i < 10; i++) {
			temp = input.nextInt();
			if(temp > first) {
				int temp2 = first;
				first = temp;
				temp = temp2;
				if(temp > second) {
					int temp3 = second;
					second = temp;
					temp = temp3;
					if(temp3 > third) {
						third = temp3;
					}
				}
			}
			else if(temp > second) {
				int temp3 = second;
				second = temp;
				temp = temp3;
				if(temp3 > third) {
					third = temp3;
				}
			}
			else if(temp > third) {
				third = temp;
			}
		}
		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
		
	}

}