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

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

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[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.Arrays; Arrays java.util import java.util.Collections; Collections java.util public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		}

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

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		}

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

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		}

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer[] a =new Integer[10]; a new Integer[10] 10 for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		} {
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		} a[i] = Integer.parseInt(br.readLine()) a[i] a i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br if(a[i] < 0 || a[i] >10000){
				i--;
			} a[i] < 0 || a[i] >10000 a[i] < 0 a[i] a i 0 a[i] >10000 a[i] a i 10000 {
				i--;
			} i-- i Arrays.sort(a,Collections.reverseOrder()) Arrays.sort Arrays a Collections.reverseOrder() Collections.reverseOrder Collections for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(a[i]);
		} {
			System.out.println(a[i]);
		} System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args public class Main {
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		}

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

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		}

	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;

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

		Integer[] a =new Integer[10];    //?????????????????????

		for(int i = 0; i < a.length; i++){
			a[i] = Integer.parseInt(br.readLine());
			if(a[i] < 0 || a[i] >10000){
				i--;
			}
		}

		Arrays.sort(a,Collections.reverseOrder());

		for(int i = 0; i < 3; i++){
			System.out.println(a[i]);
		}

	}
}