Problem:
List of Top 3 Hills

There is a data which provides heights (in meter) of mountains. The data is only for ten mountains.

Write a program which prints heights of the top three mountains in descending order.

Input

Height of mountain 1
Height of mountain 2
Height of mountain 3
.
.
Height of mountain 10

Constraints

0 ≤ height of mountain (integer) ≤ 10,000

Output

Height of the 1st mountain
Height of the 2nd mountain
Height of the 3rd mountain

Sample Input 1

1819
2003
876
2840
1723
1673
3776
2848
1592
922

Output for the Sample Input 1

3776
2848
2840

Sample Input 2

100
200
300
400
500
600
700
800
900
900

Output for the Sample Input 2

900
900
800

Solution in C# (judge verdict: Accepted)

using System;
using System.Collections.Generic;

namespace ConsoleApp2
{
    class Program
    {
        static void Main(string[] args)
        {
            string A1 = Console.ReadLine();
            string A2 = Console.ReadLine();
            string A3 = Console.ReadLine();
            string A4 = Console.ReadLine();
            string A5 = Console.ReadLine();
            string A6 = Console.ReadLine();
            string A7 = Console.ReadLine();
            string A8 = Console.ReadLine();
            string A9 = Console.ReadLine();
            string A10 = Console.ReadLine();
            int a1 = int.Parse(A1);
            int a2 = int.Parse(A2);
            int a3 = int.Parse(A3);
            int a4 = int.Parse(A4);
            int a5 = int.Parse(A5);
            int a6 = int.Parse(A6);
            int a7 = int.Parse(A7);
            int a8 = int.Parse(A8);
            int a9 = int.Parse(A9);
            int a10 = int.Parse(A10);
            
            var A = new List<int>();
            A.Add(a1);
            A.Add(a2);
            A.Add(a3);
            A.Add(a4);
            A.Add(a5);
            A.Add(a6);
            A.Add(a7);
            A.Add(a8);
            A.Add(a9);
            A.Add(a10);
            A.Sort();
            Console.WriteLine(A[9]);
            Console.WriteLine(A[8]);
            Console.WriteLine(A[7]);
            Console.ReadKey();
        }
    }
}