using System.Collections;
using System.Collections.Generic;
public static void Main()
n=Convert.ToInt32(Console.ReadLine());
fare=Convert.ToDouble(Console.ReadLine());
var tm=new Vehicle(id,type,mop,fare);
TollplazaManager.Add(tm);
ch=Convert.ToInt32(Console.ReadLine());
string mod=Console.ReadLine();
double a=TollplazaManager.FareColl(mod);
string t=Console.ReadLine();
List<Vehicle> temp=TollplazaManager.TypeChecker(t);
Console.WriteLine("No such vehicle exists");
foreach(Vehicle v in temp)
Console.WriteLine("{0}:{1}:{2}",v.Id,v.Type,v.Mop);
public static class TollplazaManager
public static List<Vehicle> nl=new List<Vehicle>();
public static void Add(Vehicle k)
public static double FareColl(string mode)
foreach(Vehicle v in nl.FindAll(s=>s.Mop.ToUpper().Equals(mode.ToUpper())))
public static List<Vehicle> TypeChecker(string tpe)
List<Vehicle> nl2=new List<Vehicle>();
foreach(Vehicle v in nl.FindAll(s=>s.Type.ToUpper().Equals(tpe.ToUpper())))
nl2=nl2.OrderBy(n=>n.Id).ToList();
public string Id {get;set;}
public string Type {get;set;}
public string Mop {get;set;}
public double Fare {get;set;}
public Vehicle(string Id,string Type,string Mop,double Fare)