using System.Collections.Generic;
public static void Main()
Dictionary<string, int> personDictionary = new Dictionary<string, int>();
personDictionary.Add("Sally", 6);
personDictionary.Add("Beth", 5);
personDictionary.Add("Mary", 5);
foreach (var currentMatch in personDictionary.Keys)
foreach (var currentPerson in personDictionary.Keys)
if (currentPerson == currentMatch)
personDictionary[currentPerson]--;