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