import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

    for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main{
  public static void main(String[] args){
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

    for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    }
  }
} Main public static void main(String[] args){
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

    for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    }
  } main {
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

    for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    }
  } int[] height = new int[10]; height new int[10] 10 Scanner s = new Scanner(System.in); s new Scanner(System.in) int temp; temp for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    } int i = 0; int i = 0; i 0 i < height.length i height.length height height.length i++ i++ i {
      height[i] = s.nextInt();
    } {
      height[i] = s.nextInt();
    } height[i] = s.nextInt() height[i] height i s.nextInt() s.nextInt s for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    } int i = 0; int i = 0; i 0 i < height.length i height.length height height.length i++ i++ i {
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    } {
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    } for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      } int j = i; int j = i; j i j < height.length j height.length height height.length j++ j++ j {
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      } {
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      } if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        } i != j i j {
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        } if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          } height[i] < height[j] height[i] height i height[j] height j {
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          } temp = height[i] temp height[i] height i height[i] = height[j] height[i] height i height[j] height j height[j] = temp height[j] height j temp for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
      System.out.println(height[i]);
    } {
      System.out.println(height[i]);
    } System.out.println(height[i]) System.out.println System.out System System.out height[i] height i String[] args args public class Main{
  public static void main(String[] args){
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

    for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    }
  }
} public class Main{
  public static void main(String[] args){
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

    for(int i = 0;i < 3;i++){
      System.out.println(height[i]);
    }
  }
} Main
import java.util.Scanner;

public class Main{
  public static void main(String[] args){
    int[] height = new int[10];
    Scanner s = new Scanner(System.in);
    int temp;

    for(int i = 0;i < height.length;i++){
      height[i] = s.nextInt();
    }

    for(int i = 0;i < height.length;i++){
      for(int j = i;j < height.length;j++){
        if(i != j){
          if(height[i] < height[j]){
            temp = height[i];
            height[i] = height[j];
            height[j] = temp;
          }
        }
      }
    }

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