	import java.util.Scanner;
public class Main {
	 	public static void main(String[] args) {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	}
} import java.util.Scanner; Scanner java.util public class Main {
	 	public static void main(String[] args) {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	}
} Main public static void main(String[] args) {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	} main {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int max1 = 0; max1 0 int max2 = 0; max2 0 int max3 = 0; max3 0 for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		} int n=1; int n=1; n 1 n<=10 n 10 n++ n++ n {
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		} {
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		} int t = sc.nextInt(); t sc.nextInt() sc.nextInt sc if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			} t>=max1 t max1 {
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			} max3 = max2 max3 max2 max2 = max1 max2 max1 max1 = t max1 t if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			} t>=max2 t max2 {
	 				max3 = max2;
	 				max2 = t;
	 			} max3 = max2 max3 max2 max2 = t max2 t if (t>=max3){
	 				max3 = t;
	 			} t>=max3 t max3 {
	 				max3 = t;
	 			} max3 = t max3 t System.out.println(max1) System.out.println System.out System System.out max1 System.out.println(max2) System.out.println System.out System System.out max2 System.out.println(max3) System.out.println System.out System System.out max3 String[] args args public class Main {
	 	public static void main(String[] args) {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	}
} public class Main {
	 	public static void main(String[] args) {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	}
} Main
	import java.util.Scanner;
public class Main {
	 	public static void main(String[] args) {
	 		Scanner sc = new Scanner(System.in);
	 		int max1 = 0;
	 		int max2 = 0;
	 		int max3 = 0;
	 		for (int n=1;n<=10;n++ ){
	 			int t = sc.nextInt();
	 			if (t>=max1){
	 				max3 = max2;
	 				max2 = max1;
	 				max1 = t;
	 			}else if (t>=max2){
	 				max3 = max2;
	 				max2 = t;
	 			}else if (t>=max3){
	 				max3 = t;
	 			}
	 		}
	 		System.out.println(max1);
	 		System.out.println(max2);
	 		System.out.println(max3);
	 	}
}