import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
	public static void main(String[] a) {
		Scanner in = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		while (in.hasNext()) {
			list.add(in.nextInt());
		}
		Collections.sort(list);
		Collections.reverse(list);
		for (int i = 0; i < 3; i++) {
			System.out.println(list.get(i));
		}
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] a) {
		Scanner in = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		while (in.hasNext()) {
			list.add(in.nextInt());
		}
		Collections.sort(list);
		Collections.reverse(list);
		for (int i = 0; i < 3; i++) {
			System.out.println(list.get(i));
		}
	}
} Main public static void main(String[] a) {
		Scanner in = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		while (in.hasNext()) {
			list.add(in.nextInt());
		}
		Collections.sort(list);
		Collections.reverse(list);
		for (int i = 0; i < 3; i++) {
			System.out.println(list.get(i));
		}
	} main {
		Scanner in = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		while (in.hasNext()) {
			list.add(in.nextInt());
		}
		Collections.sort(list);
		Collections.reverse(list);
		for (int i = 0; i < 3; i++) {
			System.out.println(list.get(i));
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() while (in.hasNext()) {
			list.add(in.nextInt());
		} in.hasNext() in.hasNext in {
			list.add(in.nextInt());
		} list.add(in.nextInt()) list.add list in.nextInt() in.nextInt in Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list for (int i = 0; i < 3; i++) {
			System.out.println(list.get(i));
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(list.get(i));
		} {
			System.out.println(list.get(i));
		} System.out.println(list.get(i)) System.out.println System.out System System.out list.get(i) list.get list i String[] a a
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
	public static void main(String[] a) {
		Scanner in = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<Integer>();
		while (in.hasNext()) {
			list.add(in.nextInt());
		}
		Collections.sort(list);
		Collections.reverse(list);
		for (int i = 0; i < 3; i++) {
			System.out.println(list.get(i));
		}
	}
}