import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> iList = new ArrayList<Integer>();

		// ????????????
		for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		}

		// ????????????????????????
		Collections.sort(iList);
		for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException 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 class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> iList = new ArrayList<Integer>();

		// ????????????
		for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		}

		// ????????????????????????
		Collections.sort(iList);
		for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		}
    }
} Main public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> iList = new ArrayList<Integer>();

		// ????????????
		for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		}

		// ????????????????????????
		Collections.sort(iList);
		for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		}
    } main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> iList = new ArrayList<Integer>();

		// ????????????
		for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		}

		// ????????????????????????
		Collections.sort(iList);
		for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		}
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) List<Integer> iList = new ArrayList<Integer>(); iList new ArrayList<Integer>() for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		} int i = 0 ; int i = 0 ; i 0 i < 10 i 10 i++ i++ i {
			iList.add(Integer.valueOf(br.readLine()));
		} {
			iList.add(Integer.valueOf(br.readLine()));
		} iList.add(Integer.valueOf(br.readLine())) iList.add iList Integer.valueOf(br.readLine()) Integer.valueOf Integer br.readLine() br.readLine br Collections.sort(iList) Collections.sort Collections iList for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		} int i = iList.size() - 1; int i = iList.size() - 1; i iList.size() - 1 iList.size() iList.size iList 1 i > iList.size() - 4 i iList.size() - 4 iList.size() iList.size iList 4 i-- i-- i {
			System.out.println(iList.get(i));
		} {
			System.out.println(iList.get(i));
		} System.out.println(iList.get(i)) System.out.println System.out System System.out iList.get(i) iList.get iList i String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> iList = new ArrayList<Integer>();

		// ????????????
		for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		}

		// ????????????????????????
		Collections.sort(iList);
		for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		}
    }
}