import java.util.*;
public class Main{
 public static void main(String args[]){
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 }
} import java.util.*; util.* java public class Main{
 public static void main(String args[]){
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 }
} Main public static void main(String args[]){
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 } main {
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 } Scanner n=new Scanner(System.in); n new Scanner(System.in) int i[]=new int[10]; i new int[10] 10 for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  } int j=0; int j=0; j 0 j<=9 j 9 j++ j++ j {
   i[j]=n.nextInt();
  } {
   i[j]=n.nextInt();
  } i[j]=n.nextInt() i[j] i j n.nextInt() n.nextInt n Arrays.sort(i) Arrays.sort Arrays i System.out.println(i[9]) System.out.println System.out System System.out i[9] i 9 System.out.println(i[8]) System.out.println System.out System System.out i[8] i 8 System.out.println(i[7]) System.out.println System.out System System.out i[7] i 7 String args[] args public class Main{
 public static void main(String args[]){
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 }
} public class Main{
 public static void main(String args[]){
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 }
} Main
import java.util.*;
public class Main{
 public static void main(String args[]){
  Scanner n=new Scanner(System.in);
  int i[]=new int[10];
  for(int j=0;j<=9;j++){
   i[j]=n.nextInt();
  }
  Arrays.sort(i);
  System.out.println(i[9]);
  System.out.println(i[8]);
  System.out.println(i[7]);
 }
}