
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - 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.Arrays; Arrays java.util public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]);

  }

} Main public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]);

  } main {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]);

  } BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) int[] hillHeights = new int[10]; hillHeights new int[10] 10 for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine()); int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i hillHeights[i] = Integer.parseInt(reader.readLine()); hillHeights[i] = Integer.parseInt(reader.readLine()) hillHeights[i] hillHeights i Integer.parseInt(reader.readLine()) Integer.parseInt Integer reader.readLine() reader.readLine reader Arrays.sort(hillHeights) Arrays.sort Arrays hillHeights for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i System.out.println(hillHeights[hillHeights.length - i - 1]); System.out.println(hillHeights[hillHeights.length - i - 1]) System.out.println System.out System System.out hillHeights[hillHeights.length - i - 1] hillHeights hillHeights.length - i - 1 hillHeights.length - i - 1 hillHeights.length hillHeights hillHeights.length i 1 String[] args args public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]);

  }

} public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]);

  }

} Main

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

  public static void main(String[] args) throws IOException {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

    int[] hillHeights = new int[10];
    //Input.
    for (int i = 0; i < 10; i++)
      hillHeights[i] = Integer.parseInt(reader.readLine());
    
    //Sort.
    Arrays.sort(hillHeights);

    //Output.
    for (int i = 0; i < 3; i++)
      System.out.println(hillHeights[hillHeights.length - i - 1]);

  }

}