import java.io.BufferedReader;
//import java.io.FileReader;
//import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
//import java.util.TreeSet;


public class Main {

  /**
   * @param args
   * @throws IOException 
   * @throws NumberFormatException 
   */
  public static void main(String[] args) throws NumberFormatException, IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  }

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

  /**
   * @param args
   * @throws IOException 
   * @throws NumberFormatException 
   */
  public static void main(String[] args) throws NumberFormatException, IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  }

} Main /**
   * @param args
   * @throws IOException 
   * @throws NumberFormatException 
   */
  public static void main(String[] args) throws NumberFormatException, IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) String line; line ArrayList<Integer> numbers = new ArrayList<Integer>(); numbers new ArrayList<Integer>() while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    } (line = reader.readLine()) != null (line = reader.readLine()) line reader.readLine() reader.readLine reader null {
      numbers.add(Integer.parseInt(line));
    } numbers.add(Integer.parseInt(line)) numbers.add numbers Integer.parseInt(line) Integer.parseInt Integer line Collections.sort(numbers) Collections.sort Collections numbers for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    } int i = 0; int i = 0; i 0 i< 3 i 3 i++ i++ i {
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    } {
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    } System.out.println(numbers.get(numbers.size()-(i+1))) System.out.println System.out System System.out numbers.get(numbers.size()-(i+1)) numbers.get numbers numbers.size()-(i+1) numbers.size() numbers.size numbers (i+1) i 1 String[] args args public class Main {

  /**
   * @param args
   * @throws IOException 
   * @throws NumberFormatException 
   */
  public static void main(String[] args) throws NumberFormatException, IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  }

} public class Main {

  /**
   * @param args
   * @throws IOException 
   * @throws NumberFormatException 
   */
  public static void main(String[] args) throws NumberFormatException, IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  }

} Main
import java.io.BufferedReader;
//import java.io.FileReader;
//import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
//import java.util.TreeSet;


public class Main {

  /**
   * @param args
   * @throws IOException 
   * @throws NumberFormatException 
   */
  public static void main(String[] args) throws NumberFormatException, IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    //BufferedReader reader = new BufferedReader(new FileReader("//users/islam/Desktop/InputData.txt"));
    String line;
    
    ArrayList<Integer> numbers = new ArrayList<Integer>();
    
    while((line = reader.readLine()) != null){
      numbers.add(Integer.parseInt(line));
    }
    Collections.sort(numbers);
    for(int i = 0; i< 3; i++){
      System.out.println(numbers.get(numbers.size()-(i+1)));
      
    }
  }

}