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

public class Main{
  final static private int MAX_DATA_COUNT = 10;
  public static void main(String[] args) throws java.io.IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
  final static private int MAX_DATA_COUNT = 10;
  public static void main(String[] args) throws java.io.IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  }
} Main final static private int MAX_DATA_COUNT = 10; MAX_DATA_COUNT 10 public static void main(String[] args) throws java.io.IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Integer[] mountainsHeightArr = new Integer[10]; mountainsHeightArr new Integer[10] 10 for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine()); int i=0; int i=0; i 0 i<MAX_DATA_COUNT i MAX_DATA_COUNT i++ i++ i mountainsHeightArr[i] = Integer.parseInt(br.readLine()); mountainsHeightArr[i] = Integer.parseInt(br.readLine()) mountainsHeightArr[i] mountainsHeightArr i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(mountainsHeightArr, Collections.reverseOrder()) Arrays.sort Arrays mountainsHeightArr Collections.reverseOrder() Collections.reverseOrder Collections for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i System.out.println(mountainsHeightArr[i]); System.out.println(mountainsHeightArr[i]) System.out.println System.out System System.out mountainsHeightArr[i] mountainsHeightArr i String[] args args public class Main{
  final static private int MAX_DATA_COUNT = 10;
  public static void main(String[] args) throws java.io.IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  }
} public class Main{
  final static private int MAX_DATA_COUNT = 10;
  public static void main(String[] args) throws java.io.IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  }
} Main
import java.util.*;
import java.io.*;

public class Main{
  final static private int MAX_DATA_COUNT = 10;
  public static void main(String[] args) throws java.io.IOException {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    Integer[] mountainsHeightArr = new Integer[10];
    for (int i=0; i<MAX_DATA_COUNT; i++)
      mountainsHeightArr[i] = Integer.parseInt(br.readLine());
    Arrays.sort(mountainsHeightArr, Collections.reverseOrder());
    for (int i=0; i<3; i++)
      System.out.println(mountainsHeightArr[i]);
  }
}