// Created by bisuk on 2014/09/18.
//

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(String[] args) throws java.io.IOException {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	}
}

/*
	> javac xxx.java
	> java xxx
*/ import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Collections; Collections java.util import java.util.Arrays; Arrays java.util public class Main {
	public static void main(String[] args) throws java.io.IOException {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	}
} Main public static void main(String[] args) throws java.io.IOException {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	} main {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	} Integer[] ls = new Integer[10]; ls new Integer[10] 10 BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		} {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		} String s = in.readLine(); s in.readLine() in.readLine in ls[i] = Integer.valueOf(s) ls[i] ls i Integer.valueOf(s) Integer.valueOf Integer s Arrays.sort(ls, Collections.reverseOrder()) Arrays.sort Arrays ls Collections.reverseOrder() Collections.reverseOrder Collections for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(ls[i]);
		} {
			System.out.println(ls[i]);
		} System.out.println(ls[i]) System.out.println System.out System System.out ls[i] ls i String[] args args public class Main {
	public static void main(String[] args) throws java.io.IOException {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	}
} public class Main {
	public static void main(String[] args) throws java.io.IOException {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	}
} Main
// Created by bisuk on 2014/09/18.
//

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Collections;
import java.util.Arrays;

public class Main {
	public static void main(String[] args) throws java.io.IOException {
		//int[] ls = new int[10];
		Integer[] ls = new Integer[10];

		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		for (int i = 0; i < 10; i++) {
			String s = in.readLine();
			ls[i] = Integer.valueOf(s);
		}

		//System.out.println("ls: " + Arrays.toString(ls));
		//Arrays.sort(ls);
		Arrays.sort(ls, Collections.reverseOrder());

		//System.out.println("ls: " + Arrays.toString(ls));

		//for(int h : ls){
		for (int i = 0; i < 3; i++) {
			System.out.println(ls[i]);
		}
	}
}

/*
	> javac xxx.java
	> java xxx
*/