using System;
using System.Linq;
using System.Collections.Generic;
class Program
{
static void Main() {
var dict = new Dictionary<string, int> {["c#"] = 6,
["c++"] = 8,
["rust"] = 3,
["c"] = 9,
["php"] = 5,
["java"] = 4 };
Console.WriteLine(dict.Aggregate((x, y) => x.Value > y.Value ? x : y).Key);
Console.WriteLine(dict.Aggregate((x, y) => x.Value > y.Value ? x : y).Value);
}
}
/*
run:
c
9
*/