using System.Collections.Generic;
using System.Threading.Tasks;
public Uchilishte (string town, string name, int bal)
Console.WriteLine("Ученикът {0} от {1} е приет в ПГХТТ", this.Name, this.Town);
if (this.Bal>=200 && this.Bal<300)
Console.WriteLine("Ученикът {0} от {1} е приет в НТГ");
if (this.Bal>=300 && this.Bal< 400)
Console.WriteLine("Ученикът {0} от {1} е приет в ЕГ");
if (this.Bal>=400 && this.Bal<=500)
Console.WriteLine("Ученикът {0} от {1} е приет в ОМГ");
public static void Main()
Uchilishte a=new Uchilishte();
Console.WriteLine("Въведете брой ученици:");
int count = int.Parse(Console.ReadLine());
List <Uchilishte> uchenik = new List <Uchilishte> ();
Console.WriteLine("Въведи име:");
string name=Console.ReadLine();
Console.WriteLine("Въведи град:");
string town=Console.ReadLine();
Console.WriteLine("Въведи бал:");
for (int i = 0; i < count; i++)
var info = Console.ReadLine()
var Uchilishte = new Uchilishte(info[0], info[1], int.Parse(info[2]));
int bal= int.Parse(Console.ReadLine());
Uchilishte ученик= new Uchilishte( town, name, bal);