public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	} main {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int[] mini = new int[]{ -1, -2, -3 }; mini new int[]{ -1, -2, -3 } int temp; temp for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		} {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		} temp = sc.nextInt() temp sc.nextInt() sc.nextInt sc if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			} temp > mini[0] temp mini[0] mini 0 {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} mini[2] = mini[1] mini[2] mini 2 mini[1] mini 1 mini[1] = mini[0] mini[1] mini 1 mini[0] mini 0 mini[0] = temp mini[0] mini 0 temp if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			} temp > mini[1] temp mini[1] mini 1 {
				mini[2] = mini[1];
				mini[1] = temp;
			} mini[2] = mini[1] mini[2] mini 2 mini[1] mini 1 mini[1] = temp mini[1] mini 1 temp if (temp > mini[2]) {
				mini[2] = temp;
			} temp > mini[2] temp mini[2] mini 2 {
				mini[2] = temp;
			} mini[2] = temp mini[2] mini 2 temp for (int i = 0; i < 3; i++)
			System.out.println(mini[i]); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i System.out.println(mini[i]); System.out.println(mini[i]) System.out.println System.out System System.out mini[i] mini i String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	}

} Main
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);

		int[] mini = new int[]{ -1, -2, -3 }; // -1 > -2 > -3
		int temp;
		for (int i = 0; i < 10; i++) {
			temp = sc.nextInt();
			if (temp > mini[0]) {
				mini[2] = mini[1];
				mini[1] = mini[0];
				mini[0] = temp;
			} else if (temp > mini[1]) {
				mini[2] = mini[1];
				mini[1] = temp;
			} else if (temp > mini[2]) {
				mini[2] = temp;
			}
		}

		for (int i = 0; i < 3; i++)
			System.out.println(mini[i]);
	}

}