import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Arrays;
 
public class Main {
  public static void main(String args[] ) throws IOException {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  }
} import java.io.InputStreamReader; InputStreamReader java.io import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.util.Arrays; Arrays java.util public class Main {
  public static void main(String args[] ) throws IOException {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  }
} Main public static void main(String args[] ) throws IOException {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  } main {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int[] list = new int [10]; list new int [10] 10 for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     } int i = 0; int i = 0; i 0 i < 10 i 10 i++ i++ i {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     } {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     } String s = br.readLine(); s br.readLine() br.readLine br int n = Integer.parseInt(s); n Integer.parseInt(s) Integer.parseInt Integer s list[i] = n list[i] list i n Arrays.sort(list) Arrays.sort Arrays list System.out.println(list[list.length-1]) System.out.println System.out System System.out list[list.length-1] list list.length-1 list.length list list.length 1 System.out.println(list[list.length-2]) System.out.println System.out System System.out list[list.length-2] list list.length-2 list.length list list.length 2 System.out.println(list[list.length-3]) System.out.println System.out System System.out list[list.length-3] list list.length-3 list.length list list.length 3 br.close() br.close br String args[] args public class Main {
  public static void main(String args[] ) throws IOException {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  }
} public class Main {
  public static void main(String args[] ) throws IOException {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  }
} Main
import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
import java.util.Arrays;
 
public class Main {
  public static void main(String args[] ) throws IOException {
     BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     int[] list = new int [10];
     for (int i = 0; i < 10; i++) {
       String s = br.readLine();
       int n = Integer.parseInt(s);
       list[i] = n;
     }
     Arrays.sort(list);

     System.out.println(list[list.length-1]);
     System.out.println(list[list.length-2]);
     System.out.println(list[list.length-3]);
     br.close();
  }
}