using System.Collections;
using System.Collections.Generic;
public static void Main(string[] args)
ToastMasterManagement manager = new ToastMasterManagement();
int n = int.Parse(Console.ReadLine());
string location = Console.ReadLine();
string type = Console.ReadLine();
int noofevents = int.Parse(Console.ReadLine());
int noofyears = int.Parse(Console.ReadLine());
manager.toastmasters.Add(new ToastMaster(location, type, noofevents, noofyears));
int choice = int.Parse(Console.ReadLine());
string loc = Console.ReadLine();
int cnt = manager.ToastMastercountByLocation(loc);
Console.WriteLine("There are no toastmaster with the given location");
Console.WriteLine("Total Count is :" + cnt);
string tpe = Console.ReadLine();
Dictionary<int,string> tmp = manager.ToastMasterByType(tpe);
Console.WriteLine("There are no toatmaster with the given type");
Console.WriteLine("{0}-{1}",i.Key,i.Value);
static int autoid = 1000;
public int ToastMasterid;
public string Location { get; set; }
public string Type { get; set; }
public int Noofevents { get; set; }
public int Noofyears { get; set; }
public ToastMaster(string Location,string Type,int Noofevents,int Nooyears)
this.Location = Location;
this.Noofevents = Noofevents;
this.Noofyears = Noofyears;
class ToastMasterManagement
public List<ToastMaster> toastmasters = new List<ToastMaster>();
public int ToastMastercountByLocation(string loc)
foreach(ToastMaster i in toastmasters.FindAll(s => s.Location.ToUpper().Equals(loc.ToUpper())))
public Dictionary<int,string> ToastMasterByType(string tp)
Dictionary<int, string> temp = new Dictionary<int, string>();
foreach(ToastMaster j in toastmasters.FindAll(s => s.Type.ToUpper().Equals(tp.ToUpper())))
temp.Add(j.ToastMasterid,j.Location);