using System; using System.Collections.Generic; using System.Linq; class Program { static void Main(string[] args) { var list = new List(); for (int i=0; i < 3; i++) { list.Add(int.Parse(Console.ReadLine())); } var dic = new Dictionary() { { "A", list[0] }, { "B", list[1] }, { "C", list[2] } }; foreach (var data in dic.OrderByDescending(x => x.Value)) Console.WriteLine(data.Key); } }