import static java.util.Comparator.reverseOrder;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	}
} import static java.util.Comparator.reverseOrder; import static java.util.Comparator.reverseOrder; import static java.util.Comparator.reverseOrder; import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	}
} Main public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<Integer> hillsHightList = new ArrayList<>(); hillsHightList new ArrayList<>() try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		} catch (Exception e) {
			// TODO: handle exception
		} Exception e {
			// TODO: handle exception
		} {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			} br.ready() br.ready br {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			} hillsHightList.add(Integer.valueOf(br.readLine())) hillsHightList.add hillsHightList Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br Collections.sort(hillsHightList, reverseOrder()) Collections.sort Collections hillsHightList reverseOrder() reverseOrder System.out.println(hillsHightList.get(0)) System.out.println System.out System System.out hillsHightList.get(0) hillsHightList.get hillsHightList 0 System.out.println(hillsHightList.get(1)) System.out.println System.out System System.out hillsHightList.get(1) hillsHightList.get hillsHightList 1 System.out.println(hillsHightList.get(2)) System.out.println System.out System System.out hillsHightList.get(2) hillsHightList.get hillsHightList 2 System.exit(0) System.exit System 0 String[] args args public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	}
} public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	}
} Main
import static java.util.Comparator.reverseOrder;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		List<Integer> hillsHightList = new ArrayList<>();
		try {
			while (br.ready()) {
				hillsHightList.add(Integer.valueOf(br.readLine()));
			}
		} catch (Exception e) {
			// TODO: handle exception
		}
		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	}
}