import java.util.Scanner;

public class Main {
  private static int input_num , temp;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  }
} import java.util.Scanner; Scanner java.util public class Main {
  private static int input_num , temp;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  }
} Main private static int input_num input_num temp; temp public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  } main {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int[] best3_height = {0, 0, 0}; best3_height {0, 0, 0} 0 0 0 while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    } stdIn.hasNextInt() stdIn.hasNextInt stdIn {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    } input_num = stdIn.nextInt() input_num stdIn.nextInt() stdIn.nextInt stdIn if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      } best3_height[0] < input_num best3_height[0] best3_height 0 input_num {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } temp = best3_height[0] temp best3_height[0] best3_height 0 best3_height[0] = input_num best3_height[0] best3_height 0 input_num best3_height[2] = best3_height[1] best3_height[2] best3_height 2 best3_height[1] best3_height 1 best3_height[1] = temp best3_height[1] best3_height 1 temp temp = 0 temp 0 if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      } best3_height[1] < input_num best3_height[1] best3_height 1 input_num {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } temp = best3_height[1] temp best3_height[1] best3_height 1 best3_height[1] = input_num best3_height[1] best3_height 1 input_num best3_height[2] = temp best3_height[2] best3_height 2 temp temp = 0 temp 0 if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      } best3_height[2] < input_num best3_height[2] best3_height 2 input_num {
        best3_height[2] = input_num;
      } best3_height[2] = input_num best3_height[2] best3_height 2 input_num {
        continue;
      } continue; for (int height : best3_height) {
      System.out.println(height);
    } int height best3_height {
      System.out.println(height);
    } {
      System.out.println(height);
    } System.out.println(height) System.out.println System.out System System.out height String[] args args public class Main {
  private static int input_num , temp;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  }
} public class Main {
  private static int input_num , temp;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  }
} Main
import java.util.Scanner;

public class Main {
  private static int input_num , temp;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    int[] best3_height = {0, 0, 0};
    while (stdIn.hasNextInt()) {
      input_num = stdIn.nextInt();
      if (best3_height[0] < input_num) {
        temp = best3_height[0];
        best3_height[0] = input_num;
        best3_height[2] = best3_height[1];
        best3_height[1] = temp;
        temp = 0;
      } else if (best3_height[1] < input_num) {
        temp = best3_height[1];
        best3_height[1] = input_num;
        best3_height[2] = temp;
        temp = 0;
      } else if (best3_height[2] < input_num) {
        best3_height[2] = input_num;
      } else {
        continue;
      }
    }
    for (int height : best3_height) {
      System.out.println(height);
    }
  }
}