using System;
using System.Linq;
using System.Collections.Generic;
class Program
{
static void Main() {
var list = new List<KeyValuePair<string, int>>();
list.Add(new KeyValuePair<string, int>("c", 6));
list.Add(new KeyValuePair<string, int>("java", 3));
list.Add(new KeyValuePair<string, int>("c#", 9));
list.Add(new KeyValuePair<string, int>("rust", 2));
list.Add(new KeyValuePair<string, int>("c++", 7));
int list_size = list.Count;
for (int i = 0; i < list_size; i++) {
Console.WriteLine(list.ElementAt(i).Key + " : " + list.ElementAt(i).Value);
}
}
}
/*
run:
c : 6
java : 3
c# : 9
rust : 2
c++ : 7
*/