import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Stack;
import java.util.Scanner;
import java.util.Queue;

/**
 * @author yoshikyoto
 */



class Main{
	static final boolean DEBUG = false;
	static Scanner sc = new Scanner(new InputStreamReader(System.in));
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public static void main(String args[]) throws Exception{
		int[] m = new int[10];
		for(int i = 0; i < 10; i++) m[i] = readInt();
		Arrays.sort(m);
		for(int i = 0; i < 3; i++) p(m[9-i]);
	}

	public static String readLine() throws IOException{return br.readLine();}
	public static int readInt(){return sc.nextInt();}
	public static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(int[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(double[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}
	public static void p(Object o){System.out.println(o.toString());}
	public static void d(Object o){if(DEBUG)System.out.println(o.toString());}
	public static int[] parseInt(String[] arr){
		int[] res = new int[arr.length];
		for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);
		return res;
	}
	public static int parseInt(Object o){return Integer.parseInt(o.toString());};
}

class MyHashMap<E> extends HashMap<E, Integer>{
	ArrayList<E> keyArray = new ArrayList<E>();
	public void add(E key){add(key, 1);}
	public void add(E key, Integer value){
		if(containsKey(key)){
			value += get(key);
		}else{
			keyArray.add(key);
		}
		put(key, value);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util import java.util.Stack; Stack java.util import java.util.Scanner; Scanner java.util import java.util.Queue; Queue java.util class Main{
	static final boolean DEBUG = false;
	static Scanner sc = new Scanner(new InputStreamReader(System.in));
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public static void main(String args[]) throws Exception{
		int[] m = new int[10];
		for(int i = 0; i < 10; i++) m[i] = readInt();
		Arrays.sort(m);
		for(int i = 0; i < 3; i++) p(m[9-i]);
	}

	public static String readLine() throws IOException{return br.readLine();}
	public static int readInt(){return sc.nextInt();}
	public static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(int[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(double[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}
	public static void p(Object o){System.out.println(o.toString());}
	public static void d(Object o){if(DEBUG)System.out.println(o.toString());}
	public static int[] parseInt(String[] arr){
		int[] res = new int[arr.length];
		for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);
		return res;
	}
	public static int parseInt(Object o){return Integer.parseInt(o.toString());};
} Main static final boolean DEBUG = false; DEBUG false static Scanner sc = new Scanner(new InputStreamReader(System.in)); sc new Scanner(new InputStreamReader(System.in)) static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) public static void main(String args[]) throws Exception{
		int[] m = new int[10];
		for(int i = 0; i < 10; i++) m[i] = readInt();
		Arrays.sort(m);
		for(int i = 0; i < 3; i++) p(m[9-i]);
	} main {
		int[] m = new int[10];
		for(int i = 0; i < 10; i++) m[i] = readInt();
		Arrays.sort(m);
		for(int i = 0; i < 3; i++) p(m[9-i]);
	} int[] m = new int[10]; m new int[10] 10 for(int i = 0; i < 10; i++) m[i] = readInt(); int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i m[i] = readInt(); m[i] = readInt() m[i] m i readInt() readInt Arrays.sort(m) Arrays.sort Arrays m for(int i = 0; i < 3; i++) p(m[9-i]); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i p(m[9-i]); p(m[9-i]) p m[9-i] m 9-i 9 i String args[] args public static String readLine() throws IOException{return br.readLine();} readLine {return br.readLine();} return br.readLine(); br.readLine() br.readLine br public static int readInt(){return sc.nextInt();} readInt {return sc.nextInt();} return sc.nextInt(); sc.nextInt() sc.nextInt sc public static void pa(Object[] arr){System.out.println(Arrays.toString(arr));} pa {System.out.println(Arrays.toString(arr));} System.out.println(Arrays.toString(arr)) System.out.println System.out System System.out Arrays.toString(arr) Arrays.toString Arrays arr Object[] arr arr public static void pa(int[] arr){System.out.println(Arrays.toString(arr));} pa {System.out.println(Arrays.toString(arr));} System.out.println(Arrays.toString(arr)) System.out.println System.out System System.out Arrays.toString(arr) Arrays.toString Arrays arr int[] arr arr public static void pa(double[] arr){System.out.println(Arrays.toString(arr));} pa {System.out.println(Arrays.toString(arr));} System.out.println(Arrays.toString(arr)) System.out.println System.out System System.out Arrays.toString(arr) Arrays.toString Arrays arr double[] arr arr public static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));} pa {System.out.println(Arrays.toString(arr));} System.out.println(Arrays.toString(arr)) System.out.println System.out System System.out Arrays.toString(arr) Arrays.toString Arrays arr boolean[] arr arr public static void p(Object o){System.out.println(o.toString());} p {System.out.println(o.toString());} System.out.println(o.toString()) System.out.println System.out System System.out o.toString() o.toString o Object o o public static void d(Object o){if(DEBUG)System.out.println(o.toString());} d {if(DEBUG)System.out.println(o.toString());} if(DEBUG)System.out.println(o.toString()); DEBUG System.out.println(o.toString()) System.out.println System.out System System.out o.toString() o.toString o Object o o public static int[] parseInt(String[] arr){
		int[] res = new int[arr.length];
		for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);
		return res;
	} parseInt {
		int[] res = new int[arr.length];
		for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);
		return res;
	} int[] res = new int[arr.length]; res new int[arr.length] arr.length arr arr.length for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]); int i = 0; int i = 0; i 0 i < arr.length i arr.length arr arr.length i++ i++ i res[i] = Integer.parseInt(arr[i]); res[i] = Integer.parseInt(arr[i]) res[i] res i Integer.parseInt(arr[i]) Integer.parseInt Integer arr[i] arr i return res; res String[] arr arr public static int parseInt(Object o){return Integer.parseInt(o.toString());} parseInt {return Integer.parseInt(o.toString());} return Integer.parseInt(o.toString()); Integer.parseInt(o.toString()) Integer.parseInt Integer o.toString() o.toString o Object o o class MyHashMap<E> extends HashMap<E, Integer>{
	ArrayList<E> keyArray = new ArrayList<E>();
	public void add(E key){add(key, 1);}
	public void add(E key, Integer value){
		if(containsKey(key)){
			value += get(key);
		}else{
			keyArray.add(key);
		}
		put(key, value);
	}
} MyHashMap ArrayList<E> keyArray = new ArrayList<E>(); keyArray new ArrayList<E>() public void add(E key){add(key, 1);} add {add(key, 1);} add(key, 1) add key 1 E key key public void add(E key, Integer value){
		if(containsKey(key)){
			value += get(key);
		}else{
			keyArray.add(key);
		}
		put(key, value);
	} add {
		if(containsKey(key)){
			value += get(key);
		}else{
			keyArray.add(key);
		}
		put(key, value);
	} if(containsKey(key)){
			value += get(key);
		}else{
			keyArray.add(key);
		} containsKey(key) containsKey key {
			value += get(key);
		} value += get(key) value get(key) get key {
			keyArray.add(key);
		} keyArray.add(key) keyArray.add keyArray key put(key, value) put key value E key key Integer value value HashMap
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Stack;
import java.util.Scanner;
import java.util.Queue;

/**
 * @author yoshikyoto
 */



class Main{
	static final boolean DEBUG = false;
	static Scanner sc = new Scanner(new InputStreamReader(System.in));
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	
	public static void main(String args[]) throws Exception{
		int[] m = new int[10];
		for(int i = 0; i < 10; i++) m[i] = readInt();
		Arrays.sort(m);
		for(int i = 0; i < 3; i++) p(m[9-i]);
	}

	public static String readLine() throws IOException{return br.readLine();}
	public static int readInt(){return sc.nextInt();}
	public static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(int[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(double[] arr){System.out.println(Arrays.toString(arr));}
	public static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}
	public static void p(Object o){System.out.println(o.toString());}
	public static void d(Object o){if(DEBUG)System.out.println(o.toString());}
	public static int[] parseInt(String[] arr){
		int[] res = new int[arr.length];
		for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);
		return res;
	}
	public static int parseInt(Object o){return Integer.parseInt(o.toString());};
}

class MyHashMap<E> extends HashMap<E, Integer>{
	ArrayList<E> keyArray = new ArrayList<E>();
	public void add(E key){add(key, 1);}
	public void add(E key, Integer value){
		if(containsKey(key)){
			value += get(key);
		}else{
			keyArray.add(key);
		}
		put(key, value);
	}
}