import java.util.Scanner;

class Main {
    public static void main( String args[] ) {

      Scanner scan = new Scanner(System.in);


      int[] input = new int[10];
      int x;
      for( int i = 0; i < 10; i++ ) {
        input[i] = scan.nextInt();
      }

      for( int i = 0; i < 10; i++ ) {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      }

      System.out.println( input[0] );
      System.out.println( input[1] );
      System.out.println( input[2] );

    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main( String args[] ) {

      Scanner scan = new Scanner(System.in);


      int[] input = new int[10];
      int x;
      for( int i = 0; i < 10; i++ ) {
        input[i] = scan.nextInt();
      }

      for( int i = 0; i < 10; i++ ) {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      }

      System.out.println( input[0] );
      System.out.println( input[1] );
      System.out.println( input[2] );

    }
} Main public static void main( String args[] ) {

      Scanner scan = new Scanner(System.in);


      int[] input = new int[10];
      int x;
      for( int i = 0; i < 10; i++ ) {
        input[i] = scan.nextInt();
      }

      for( int i = 0; i < 10; i++ ) {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      }

      System.out.println( input[0] );
      System.out.println( input[1] );
      System.out.println( input[2] );

    } main {

      Scanner scan = new Scanner(System.in);


      int[] input = new int[10];
      int x;
      for( int i = 0; i < 10; i++ ) {
        input[i] = scan.nextInt();
      }

      for( int i = 0; i < 10; i++ ) {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      }

      System.out.println( input[0] );
      System.out.println( input[1] );
      System.out.println( input[2] );

    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int[] input = new int[10]; input new int[10] 10 int x; x for( int i = 0; i < 10; i++ ) {
        input[i] = scan.nextInt();
      } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
        input[i] = scan.nextInt();
      } {
        input[i] = scan.nextInt();
      } input[i] = scan.nextInt() input[i] input i scan.nextInt() scan.nextInt scan for( int i = 0; i < 10; i++ ) {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      } {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      } for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        } int r = i+1; int r = i+1; r i+1 i 1 r < 10 r 10 r++ r++ r {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        } {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        } if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          } input[i] < input[r] input[i] input i input[r] input r {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          } x = input[i] x input[i] input i input[i] = input[r] input[i] input i input[r] input r input[r] = x input[r] input r x System.out.println( input[0] ) System.out.println System.out System System.out input[0] input 0 System.out.println( input[1] ) System.out.println System.out System System.out input[1] input 1 System.out.println( input[2] ) System.out.println System.out System System.out input[2] input 2 String args[] args
import java.util.Scanner;

class Main {
    public static void main( String args[] ) {

      Scanner scan = new Scanner(System.in);


      int[] input = new int[10];
      int x;
      for( int i = 0; i < 10; i++ ) {
        input[i] = scan.nextInt();
      }

      for( int i = 0; i < 10; i++ ) {
        for( int r = i+1; r < 10; r++ ) {
          if( input[i] < input[r] ) {
            x = input[i];
            input[i] = input[r];
            input[r] = x;
          }
        }
      }

      System.out.println( input[0] );
      System.out.println( input[1] );
      System.out.println( input[2] );

    }
}