import java.util.*;

class Main
{
    public static int swap(int a, int b)
    {
        return a;
    }
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int a[] = new int[4];
        for (int t = 0; t < 10; t++)
        {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        }
        for (int i = 0; i < 3; i++)
        {
            System.out.println(a[i]);
        }
        input.close();
    }
} import java.util.*; util.* java class Main
{
    public static int swap(int a, int b)
    {
        return a;
    }
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int a[] = new int[4];
        for (int t = 0; t < 10; t++)
        {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        }
        for (int i = 0; i < 3; i++)
        {
            System.out.println(a[i]);
        }
        input.close();
    }
} Main public static int swap(int a, int b)
    {
        return a;
    } swap {
        return a;
    } return a; a int a a int b b public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int a[] = new int[4];
        for (int t = 0; t < 10; t++)
        {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        }
        for (int i = 0; i < 3; i++)
        {
            System.out.println(a[i]);
        }
        input.close();
    } main {
        Scanner input = new Scanner(System.in);
        int a[] = new int[4];
        for (int t = 0; t < 10; t++)
        {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        }
        for (int i = 0; i < 3; i++)
        {
            System.out.println(a[i]);
        }
        input.close();
    } Scanner input = new Scanner(System.in); input new Scanner(System.in) int a[] = new int[4]; a new int[4] 4 for (int t = 0; t < 10; t++)
        {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        } int t = 0; int t = 0; t 0 t < 10 t 10 t++ t++ t {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        } {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        } a[3] = input.nextInt() a[3] a 3 input.nextInt() input.nextInt input for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            } int i = 2; int i = 2; i 2 i >= 0 i 0 i-- i-- i {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            } {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            } if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                } a[i] < a[i+1] a[i] a i a[i+1] a i+1 i 1 {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                } a[i+1] = swap(a[i], a[i]=a[i+1]) a[i+1] a i+1 i 1 swap(a[i], a[i]=a[i+1]) swap a[i] a i a[i]=a[i+1] a[i] a i a[i+1] a i+1 i 1 for (int i = 0; i < 3; i++)
        {
            System.out.println(a[i]);
        } int i = 0; int i = 0; i 0 i < 3 i 3 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 input.close() input.close input String[] args args
import java.util.*;

class Main
{
    public static int swap(int a, int b)
    {
        return a;
    }
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        int a[] = new int[4];
        for (int t = 0; t < 10; t++)
        {
            a[3] = input.nextInt();
            for (int i = 2; i >= 0; i--)
            {
                if (a[i] < a[i+1])
                {
                    a[i+1] = swap(a[i], a[i]=a[i+1]);
                }
            }
        }
        for (int i = 0; i < 3; i++)
        {
            System.out.println(a[i]);
        }
        input.close();
    }
}