using System.Collections.Generic;
public static void Main()
SortedList<int,string> vid = new SortedList<int,string>();
SortedList<int,string> names = new SortedList<int,string>();
SortedList<int,double> prices = new SortedList<int,double>();
Console.WriteLine("(Видове продукти - млечни, месни, хлебни, ядки, напитки. Въведи вид на продукта: ");
if(type!="млечни" && (type!="месни") && (type!="хлебни") && (type!="ядки") && (type!="напитки")) goto label1;
Console.WriteLine("Въведи име на продукта: ");
product=Console.ReadLine();
Console.WriteLine("Въведи цена на продукта:");
cost=double.Parse(Console.ReadLine());
if(vid.ContainsValue(type)==false)
names.Add(i, i.ToString()+product);
Console.WriteLine("Сборът на цените на всички продукти е: {0}", sbor);