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



public class Main {

	public static void main(String[] args) throws IOException {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	}
	
	
	
	

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Collections; Collections java.util import java.util.PriorityQueue; PriorityQueue java.util public class Main {

	public static void main(String[] args) throws IOException {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	}
	
	
	
	

} Main public static void main(String[] args) throws IOException {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	} main {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	} PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder()); pq new PriorityQueue<Integer>(3, Collections.reverseOrder()) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String s; s while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    } (s = in.readLine()) != null && s.length() != 0 (s = in.readLine()) != null (s = in.readLine()) s in.readLine() in.readLine in null s.length() != 0 s.length() s.length s 0 {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    } pq.add(Integer.parseInt(s)) pq.add pq Integer.parseInt(s) Integer.parseInt Integer s for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.println(pq.poll());
		} {
			System.out.println(pq.poll());
		} System.out.println(pq.poll()) System.out.println System.out System System.out pq.poll() pq.poll pq String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	}
	
	
	
	

} public class Main {

	public static void main(String[] args) throws IOException {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	}
	
	
	
	

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



public class Main {

	public static void main(String[] args) throws IOException {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>(3, Collections.reverseOrder());
	    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
	    String s;
	    while ((s = in.readLine()) != null && s.length() != 0) {
	    	pq.add(Integer.parseInt(s));
//	    	System.out.println(s);
	    // An empty line or Ctrl-Z terminates the program	    
	    }
	    for (int i = 0; i < 3; i++) {
			System.out.println(pq.poll());
		}
	    
	}
	
	
	
	

}