static void Main(string[] args) { Competition members = new Competition(); Console.Write("Input amount of gymnasts: "); try { int n = Convert.ToInt32(Console.ReadLine()); for (int i = 0; i < n; i++) { Console.Write("\n"); Information first = new Information(); Console.Write("Input name of gymnast: "); first.Name = Console.ReadLine(); Console.Write("Input surname of gymnast: "); first.Surname = Console.ReadLine(); Console.Write("Input nation of gymnast: "); first.Nation = Console.ReadLine(); members.Set(first); members.Evaluation(first); } } catch { Console.WriteLine("Input correct information about sportmen!"); } members.Result(); Console.ReadKey(); }