/* Volume1 */
import java.io.*;

class Main
{
  public static final int NUMBER = 10;

  public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  }
} import java.io.*; io.* java class Main
{
  public static final int NUMBER = 10;

  public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  }
} Main public static final int NUMBER = 10; NUMBER 10 public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  } main {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  } try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    } catch(Exception e){
      System.out.println(e);
    } Exception e {
      System.out.println(e);
    } System.out.println(e) System.out.println System.out System System.out e {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int[] array = new int[NUMBER]; array new int[NUMBER] NUMBER int[] height = new int[3]; height new int[3] 3 for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      } int i = 0; int i = 0; i 0 i < NUMBER i NUMBER i++ i++ i {
        array[i] = Integer.parseInt(br.readLine());
      } {
        array[i] = Integer.parseInt(br.readLine());
      } array[i] = Integer.parseInt(br.readLine()) array[i] array i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      } {
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      } height[i] = array[i] height[i] height i array[i] array i int index = i; index i for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        } int j = i+1; int j = i+1; j i+1 i 1 j < NUMBER j NUMBER j++ j++ j {
          if(array[index] < array[j]) index = j;
        } {
          if(array[index] < array[j]) index = j;
        } if(array[index] < array[j]) index = j; array[index] < array[j] array[index] array index array[j] array j index = j index j int tmp = height[i]; tmp height[i] height i height[i] = array[index] height[i] height i array[index] array index array[index] = tmp array[index] array index tmp sb.append(height[i]).append("\n") sb.append(height[i]).append sb.append(height[i]) sb.append sb height[i] height i "\n" System.out.print(sb) System.out.print System.out System System.out sb String[] args args
/* Volume1 */
import java.io.*;

class Main
{
  public static final int NUMBER = 10;

  public static void main(String[] args)
  {
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      StringBuilder sb = new StringBuilder();
      int[] array = new int[NUMBER];
      int[] height = new int[3];

      for(int i = 0; i < NUMBER; i++){
        array[i] = Integer.parseInt(br.readLine());
      }
      for(int i = 0; i < 3 ; i++){
        height[i] = array[i];
        int index = i;
        for(int j = i+1; j < NUMBER; j++){
          if(array[index] < array[j]) index = j;
        }
        int tmp = height[i];
        height[i] = array[index];
        array[index] = tmp;
        sb.append(height[i]).append("\n");
      }

      System.out.print(sb);
    }catch(Exception e){
      System.out.println(e);
    }
  }
}