import java.util.Scanner;

public class Main {

   public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

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

   static int[] max3(int[] args) {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   }

} import java.util.Scanner; Scanner java.util public class Main {

   public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

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

   static int[] max3(int[] args) {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   }

} Main public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

      for (int i = 0; i < 3; i++) {
         System.out.println(valueMax[i]);
      }
   } main {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

      for (int i = 0; i < 3; i++) {
         System.out.println(valueMax[i]);
      }
   } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) final int SIZE = 10; SIZE 10 int[] height = new int[SIZE]; height new int[SIZE] SIZE for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      } int i = 0; int i = 0; i 0 i < SIZE i SIZE i++ i++ i {
         height[i] = scanner.nextInt();
      } {
         height[i] = scanner.nextInt();
      } height[i] = scanner.nextInt() height[i] height i scanner.nextInt() scanner.nextInt scanner int[] valueMax = max3(height); valueMax max3(height) max3 height for (int i = 0; i < 3; i++) {
         System.out.println(valueMax[i]);
      } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
         System.out.println(valueMax[i]);
      } {
         System.out.println(valueMax[i]);
      } System.out.println(valueMax[i]) System.out.println System.out System System.out valueMax[i] valueMax i String[] args args static int[] max3(int[] args) {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   } max3 {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   } final int MIN = Integer.MIN_VALUE; MIN Integer.MIN_VALUE Integer Integer.MIN_VALUE int[] valueMax = { MIN, MIN, MIN }; valueMax { MIN, MIN, MIN } MIN MIN MIN for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      } int value args {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      } {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      } int tmp; tmp for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         } {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         } if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            } value > valueMax[i] value valueMax[i] valueMax i {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            } tmp = valueMax[i] tmp valueMax[i] valueMax i valueMax[i] = value valueMax[i] valueMax i value value = tmp value tmp return valueMax; valueMax int[] args args public class Main {

   public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

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

   static int[] max3(int[] args) {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   }

} public class Main {

   public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

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

   static int[] max3(int[] args) {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   }

} Main
import java.util.Scanner;

public class Main {

   public static void main(String[] args) {
      Scanner scanner = new Scanner(System.in);

      final int SIZE = 10;

      int[] height = new int[SIZE];
      for (int i = 0; i < SIZE; i++) {
         height[i] = scanner.nextInt();
      }

      int[] valueMax = max3(height);

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

   static int[] max3(int[] args) {
      final int MIN = Integer.MIN_VALUE;
      int[] valueMax = { MIN, MIN, MIN };

      for (int value : args) {
         int tmp;
         for (int i = 0; i < 3; i++) {
            if (value > valueMax[i]) {
               tmp = valueMax[i];
               valueMax[i] = value;
               value = tmp;
            }
         }
      }

      return valueMax;
   }

}