import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
   public static void main (String[] args) {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
}
} import java.util.Scanner; Scanner java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util public class Main {
   public static void main (String[] args) {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
}
} Main public static void main (String[] args) {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
} main {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
} Scanner input = new Scanner(System.in); input new Scanner(System.in) ArrayList<Integer> t = new ArrayList<Integer>(); t new ArrayList<Integer>() for (int i=0; i<10; i++) t.add(input.nextInt()); int i=0; int i=0; i 0 i<10 i 10 i++ i++ i t.add(input.nextInt()); t.add(input.nextInt()) t.add t input.nextInt() input.nextInt input Collections.sort(t) Collections.sort Collections t for (int i=0; i<3; i++) System.out.println(t.get(9-i)); int i=0; int i=0; i 0 i<3 i 3 i++ i++ i System.out.println(t.get(9-i)); System.out.println(t.get(9-i)) System.out.println System.out System System.out t.get(9-i) t.get t 9-i 9 i String[] args args public class Main {
   public static void main (String[] args) {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
}
} public class Main {
   public static void main (String[] args) {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
}
} Main
import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
   public static void main (String[] args) {
      Scanner input = new Scanner(System.in);
      ArrayList<Integer> t = new ArrayList<Integer>();
      for (int i=0; i<10; i++) t.add(input.nextInt());
      Collections.sort(t);
      for (int i=0; i<3; i++) System.out.println(t.get(9-i));
}
}