import java.util.Map; import java.util.Scanner; import java.util.TreeMap; public class MapTest { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); while (scanner.hasNext()){ Map<Integer,Integer&g...