import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Comparator; Comparator java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	}
} Main public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	} try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		} {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) List<Integer> lines = new ArrayList<>(); lines new ArrayList<>() while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			} sc.hasNext() sc.hasNext sc {
				lines.add(Integer.parseInt(sc.nextLine()));
			} lines.add(Integer.parseInt(sc.nextLine())) lines.add lines Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc lines.sort(Comparator.reverseOrder()) lines.sort lines Comparator.reverseOrder() Comparator.reverseOrder Comparator int len = Math.min(lines.size(), 3); len Math.min(lines.size(), 3) Math.min Math lines.size() lines.size lines 3 for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			} int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
				System.out.println(lines.get(i));
			} {
				System.out.println(lines.get(i));
			} System.out.println(lines.get(i)) System.out.println System.out System System.out lines.get(i) lines.get lines i String[] args args public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	}
} Main
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			List<Integer> lines = new ArrayList<>();
			while(sc.hasNext()) {
				lines.add(Integer.parseInt(sc.nextLine()));
			}
			lines.sort(Comparator.reverseOrder());
			int len = Math.min(lines.size(), 3);
			for (int i = 0; i < len; i++) {
				System.out.println(lines.get(i));
			}
		}
	}
}