import java.util.*;
import java.lang.*;
import java.io.*;

class Main{
	public static void main (String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		String line;
		while((line = br.readLine()) != null){
			
			list.add(Integer.parseInt(line));
		}
		Collections.sort(list);
		Collections.reverse(list);
		
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
	}
} import java.util.*; util.* java import java.lang.*; lang.* java import java.io.*; io.* java class Main{
	public static void main (String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		String line;
		while((line = br.readLine()) != null){
			
			list.add(Integer.parseInt(line));
		}
		Collections.sort(list);
		Collections.reverse(list);
		
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
	}
} Main public static void main (String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		String line;
		while((line = br.readLine()) != null){
			
			list.add(Integer.parseInt(line));
		}
		Collections.sort(list);
		Collections.reverse(list);
		
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		String line;
		while((line = br.readLine()) != null){
			
			list.add(Integer.parseInt(line));
		}
		Collections.sort(list);
		Collections.reverse(list);
		
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) ArrayList<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() String line; line while((line = br.readLine()) != null){
			
			list.add(Integer.parseInt(line));
		} (line = br.readLine()) != null (line = br.readLine()) line br.readLine() br.readLine br null {
			
			list.add(Integer.parseInt(line));
		} list.add(Integer.parseInt(line)) list.add list Integer.parseInt(line) Integer.parseInt Integer line Collections.sort(list) Collections.sort Collections list Collections.reverse(list) Collections.reverse Collections list System.out.println(list.get(0)) System.out.println System.out System System.out list.get(0) list.get list 0 System.out.println(list.get(1)) System.out.println System.out System System.out list.get(1) list.get list 1 System.out.println(list.get(2)) System.out.println System.out System System.out list.get(2) list.get list 2 String[] args args
import java.util.*;
import java.lang.*;
import java.io.*;

class Main{
	public static void main (String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> list = new ArrayList<Integer>();
		String line;
		while((line = br.readLine()) != null){
			
			list.add(Integer.parseInt(line));
		}
		Collections.sort(list);
		Collections.reverse(list);
		
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
	}
}