import java.util.Scanner;
import java.util.Arrays;

class Main {
  public static void main(String[] args){
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  }

  private static final void reverse(int[] m){
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  }

  private static final void output(int[] m, int n){
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  }

  private static final void input(int[] m, int n){
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  }
} import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main {
  public static void main(String[] args){
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  }

  private static final void reverse(int[] m){
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  }

  private static final void output(int[] m, int n){
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  }

  private static final void input(int[] m, int n){
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  }
} Main public static void main(String[] args){
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  } main {
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  } int[] m = new int[10]; m new int[10] 10 input(m, 10) input m 10 Arrays.sort(m) Arrays.sort Arrays m reverse(m) reverse m output(m, 3) output m 3 String[] args args private static final void reverse(int[] m){
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  } reverse {
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  } int n = m.length; n m.length m m.length for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    } int i = 0; int i = 0; i 0 i < n / 2 i n / 2 n 2 i++ i++ i {
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    } {
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    } int tmp = m[i]; tmp m[i] m i m[i] = m[n - i - 1] m[i] m i m[n - i - 1] m n - i - 1 n - i - 1 n i 1 m[n - i - 1] = tmp m[n - i - 1] m n - i - 1 n - i - 1 n i 1 tmp int[] m m private static final void output(int[] m, int n){
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  } output {
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  } for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      System.out.println(m[i]);
    } {
      System.out.println(m[i]);
    } System.out.println(m[i]) System.out.println System.out System System.out m[i] m i int[] m m int n n private static final void input(int[] m, int n){
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  } input {
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
      m[i] = cin.nextInt();
    } {
      m[i] = cin.nextInt();
    } m[i] = cin.nextInt() m[i] m i cin.nextInt() cin.nextInt cin int[] m m int n n
import java.util.Scanner;
import java.util.Arrays;

class Main {
  public static void main(String[] args){
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  }

  private static final void reverse(int[] m){
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  }

  private static final void output(int[] m, int n){
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  }

  private static final void input(int[] m, int n){
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  }
}