using System; struct sportsman { public string name; public int time; public void DisplayInfo() { Console.WriteLine($"Name: {name} Time: {time}"); } } class HelloWorld { static void Main() { sportsman[] list; list = new sportsman[8]; int sr = 0, indexOfBest = 0, temp = Int32.MaxValue; for (int i=0; i<8; i++) { list[i].name = Console.ReadLine(); list[i].time = Convert.ToInt32(Console.ReadLine()); sr = sr + list[i].time; if (temp > list[i].time) { temp = list[i].time; indexOfBest = i; } } sr = sr / 8; Console.WriteLine(sr); list[indexOfBest].DisplayInfo(); } }