using System; using System.Collections.Generic; using System.Linq; public class Program { public static List NumbersFromString(string input, char delimitor = ' ') { return input.Split( delimitor ).ToList().ConvertAll( int.Parse ); } private static List NumbersFromConsole(char delimitor = ' ') { return NumbersFromString( Console.ReadLine() ); } private struct Bro { public string Name { get; set; } public int Height { get; set; } } private static void Main() { var Bros = new List() { new Bro() { Name = "A", Height = int.Parse( s: Console.ReadLine()) }, new Bro() { Name = "B", Height=int.Parse( s: Console.ReadLine()) }, new Bro() { Name = "C", Height=int.Parse( s: Console.ReadLine()) } }; var BrosSorted = Bros.OrderByDescending( x => x.Height ); foreach (var i in BrosSorted) { Console.WriteLine(i.Name); } } }