import java.util.*;
class Main{
    public static void main(String[] a){
      int n = 10;
      int[] num = new int[n];

      Scanner stdin = new Scanner(System.in);
      for ( int i = 0; i < n; i++ ){
        num[i] = stdin.nextInt();
      }

      boolean flag = true;
      while (flag){
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      }

      for ( int i = 0; i < 3; i++ ){
        System.out.println(num[i]);
      }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] a){
      int n = 10;
      int[] num = new int[n];

      Scanner stdin = new Scanner(System.in);
      for ( int i = 0; i < n; i++ ){
        num[i] = stdin.nextInt();
      }

      boolean flag = true;
      while (flag){
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      }

      for ( int i = 0; i < 3; i++ ){
        System.out.println(num[i]);
      }
    }
} Main public static void main(String[] a){
      int n = 10;
      int[] num = new int[n];

      Scanner stdin = new Scanner(System.in);
      for ( int i = 0; i < n; i++ ){
        num[i] = stdin.nextInt();
      }

      boolean flag = true;
      while (flag){
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      }

      for ( int i = 0; i < 3; i++ ){
        System.out.println(num[i]);
      }
    } main {
      int n = 10;
      int[] num = new int[n];

      Scanner stdin = new Scanner(System.in);
      for ( int i = 0; i < n; i++ ){
        num[i] = stdin.nextInt();
      }

      boolean flag = true;
      while (flag){
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      }

      for ( int i = 0; i < 3; i++ ){
        System.out.println(num[i]);
      }
    } int n = 10; n 10 int[] num = new int[n]; num new int[n] n Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) for ( int i = 0; i < n; i++ ){
        num[i] = stdin.nextInt();
      } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
        num[i] = stdin.nextInt();
      } {
        num[i] = stdin.nextInt();
      } num[i] = stdin.nextInt() num[i] num i stdin.nextInt() stdin.nextInt stdin boolean flag = true; flag true while (flag){
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      } flag {
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      } flag = false flag false for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        } int j = n-1; int j = n-1; j n-1 n 1 j >= 1 j 1 j-- j-- j {
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        } {
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        } if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          } num[j] > num[j-1] num[j] num j num[j-1] num j-1 j 1 {
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          } int tmp = num[j]; tmp num[j] num j num[j] = num[j-1] num[j] num j num[j-1] num j-1 j 1 num[j-1] = tmp num[j-1] num j-1 j 1 tmp flag = true flag true for ( int i = 0; i < 3; i++ ){
        System.out.println(num[i]);
      } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
        System.out.println(num[i]);
      } {
        System.out.println(num[i]);
      } System.out.println(num[i]) System.out.println System.out System System.out num[i] num i String[] a a
import java.util.*;
class Main{
    public static void main(String[] a){
      int n = 10;
      int[] num = new int[n];

      Scanner stdin = new Scanner(System.in);
      for ( int i = 0; i < n; i++ ){
        num[i] = stdin.nextInt();
      }

      boolean flag = true;
      while (flag){
        flag = false;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] > num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = true;
          }
        }
      }

      for ( int i = 0; i < 3; i++ ){
        System.out.println(num[i]);
      }
    }
}