using System.Collections.Generic;
public static void Main()
Dictionary<int,string> dict = new Dictionary<int,string>();
static void AddDict(Dictionary<int,string> dic,int key,string value)
if(!dic.ContainsKey(key))
Console.WriteLine($"Added key {key} and {value}");
Console.WriteLine($"Duplicate key {key}");