
import java.io.BufferedReader;
import java.io.IOException;
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) throws IOException {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	}
} 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 public class Main {

	public static void main(String[] args) throws IOException {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	}
} Main public static void main(String[] args) throws IOException {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	} main {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	} List<Integer> hills = new ArrayList<Integer>(); hills new ArrayList<Integer>() InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br = new BufferedReader(isr); br new BufferedReader(isr) for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		} int i=0; int i=0; i 0 i<10 i 10 ++i ++i i {
			hills.add(Integer.parseInt(br.readLine()));
		} {
			hills.add(Integer.parseInt(br.readLine()));
		} hills.add(Integer.parseInt(br.readLine())) hills.add hills Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Collections.sort(hills) Collections.sort Collections hills System.out.println(hills.get(9)) System.out.println System.out System System.out hills.get(9) hills.get hills 9 System.out.println(hills.get(8)) System.out.println System.out System System.out hills.get(8) hills.get hills 8 System.out.println(hills.get(7)) System.out.println System.out System System.out hills.get(7) hills.get hills 7 String[] args args public class Main {

	public static void main(String[] args) throws IOException {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	}
} public class Main {

	public static void main(String[] args) throws IOException {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	}
} Main

import java.io.BufferedReader;
import java.io.IOException;
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) throws IOException {

		List<Integer> hills = new ArrayList<Integer>();

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills.add(Integer.parseInt(br.readLine()));
		}

		Collections.sort(hills);

		System.out.println(hills.get(9));
		System.out.println(hills.get(8));
		System.out.println(hills.get(7));

	}
}