import java.util.*;

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

 int []a = new int[10];
 for(int i=0; i<a.length; i++){
  a[i] = s.nextInt();
}
 Arrays.sort(a);
 for(int i=9; i>6; i--){
  System.out.println(a[i]);
}
}
} import java.util.*; util.* java class Main{
 public static void main(String[] args){
  Scanner s = new Scanner(System.in);

 int []a = new int[10];
 for(int i=0; i<a.length; i++){
  a[i] = s.nextInt();
}
 Arrays.sort(a);
 for(int i=9; i>6; i--){
  System.out.println(a[i]);
}
}
} Main public static void main(String[] args){
  Scanner s = new Scanner(System.in);

 int []a = new int[10];
 for(int i=0; i<a.length; i++){
  a[i] = s.nextInt();
}
 Arrays.sort(a);
 for(int i=9; i>6; i--){
  System.out.println(a[i]);
}
} main {
  Scanner s = new Scanner(System.in);

 int []a = new int[10];
 for(int i=0; i<a.length; i++){
  a[i] = s.nextInt();
}
 Arrays.sort(a);
 for(int i=9; i>6; i--){
  System.out.println(a[i]);
}
} Scanner s = new Scanner(System.in); s new Scanner(System.in) int []a = new int[10]; a new int[10] 10 for(int i=0; i<a.length; i++){
  a[i] = s.nextInt();
} int i=0; int i=0; i 0 i<a.length i a.length a a.length i++ i++ i {
  a[i] = s.nextInt();
} {
  a[i] = s.nextInt();
} a[i] = s.nextInt() a[i] a i s.nextInt() s.nextInt s Arrays.sort(a) Arrays.sort Arrays a for(int i=9; i>6; i--){
  System.out.println(a[i]);
} int i=9; int i=9; i 9 i>6 i 6 i-- i-- i {
  System.out.println(a[i]);
} {
  System.out.println(a[i]);
} System.out.println(a[i]) System.out.println System.out System System.out a[i] a i String[] args args
import java.util.*;

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

 int []a = new int[10];
 for(int i=0; i<a.length; i++){
  a[i] = s.nextInt();
}
 Arrays.sort(a);
 for(int i=9; i>6; i--){
  System.out.println(a[i]);
}
}
}