import java.io.*;
import java.util.Arrays;
public class Main{
    public static void main(String args[])throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        
        int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    }
} import java.io.*; io.* java 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 A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    }
} Main public static void main(String args[])throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        
        int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        
        int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922}; A {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922} 1819 2003 876 2840 1723 1673 3776 2848 1592 922 int len = A.length; len A.length A A.length for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine()); int i =0; int i =0; i 0 i<len i len i++ i++ i A[i] = Integer.parseInt(br.readLine()); A[i] = Integer.parseInt(br.readLine()) A[i] A i Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br Arrays.sort(A) Arrays.sort Arrays A System.out.println(A[len-1]) System.out.println System.out System System.out A[len-1] A len-1 len 1 System.out.println(A[len-2]) System.out.println System.out System System.out A[len-2] A len-2 len 2 System.out.println(A[len-3]) System.out.println System.out System System.out A[len-3] A len-3 len 3 String args[] args public class Main{
    public static void main(String args[])throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        
        int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    }
} public class Main{
    public static void main(String args[])throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        
        int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    }
} Main
import java.io.*;
import java.util.Arrays;
public class Main{
    public static void main(String args[])throws IOException
    {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        
        int A[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        int len = A.length;
        for(int i =0; i<len ; i++)
            A[i] = Integer.parseInt(br.readLine());
        
        Arrays.sort(A);
        
        System.out.println(A[len-1]);
        System.out.println(A[len-2]);
        System.out.println(A[len-3]);
        
        
    }
}