
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[] args) throws IOException {
		ArrayList<Integer> heights = new ArrayList<Integer>();
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		
		for (int i = 0; i < 10; i++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		}
		
		Collections.sort(heights);
		Collections.reverse(heights);
		
		for (int i = 0; i < 3; i++) {
			System.out.println(heights.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[] args) throws IOException {
		ArrayList<Integer> heights = new ArrayList<Integer>();
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		
		for (int i = 0; i < 10; i++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		}
		
		Collections.sort(heights);
		Collections.reverse(heights);
		
		for (int i = 0; i < 3; i++) {
			System.out.println(heights.get(i));
		}
	}
} Main public static void main(String[] args) throws IOException {
		ArrayList<Integer> heights = new ArrayList<Integer>();
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		
		for (int i = 0; i < 10; i++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		}
		
		Collections.sort(heights);
		Collections.reverse(heights);
		
		for (int i = 0; i < 3; i++) {
			System.out.println(heights.get(i));
		}
	} main {
		ArrayList<Integer> heights = new ArrayList<Integer>();
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		
		for (int i = 0; i < 10; i++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		}
		
		Collections.sort(heights);
		Collections.reverse(heights);
		
		for (int i = 0; i < 3; i++) {
			System.out.println(heights.get(i));
		}
	} ArrayList<Integer> heights = new ArrayList<Integer>(); heights 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++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		} int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		} {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		} int h = Integer.parseInt(br.readLine()); h Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br heights.add(h) heights.add heights h Collections.sort(heights) Collections.sort Collections heights Collections.reverse(heights) Collections.reverse Collections heights for (int i = 0; i < 3; i++) {
			System.out.println(heights.get(i));
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(heights.get(i));
		} {
			System.out.println(heights.get(i));
		} System.out.println(heights.get(i)) System.out.println System.out System System.out heights.get(i) heights.get heights i String[] args args

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[] args) throws IOException {
		ArrayList<Integer> heights = new ArrayList<Integer>();
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		
		for (int i = 0; i < 10; i++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		}
		
		Collections.sort(heights);
		Collections.reverse(heights);
		
		for (int i = 0; i < 3; i++) {
			System.out.println(heights.get(i));
		}
	}
}