using System.Collections.Generic; using System; public class Program { public static void Main() { string line; line = Console.ReadLine (); int times = Convert.ToInt32(line); string[] strs; SortedDictionary<int,int> dic = new SortedDictionary<int,int>(); for(int i = 0;i<times;i++) { l...