/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		    String[][] students = {{"Bobby", "87"}, {"Charles", "100"}, {"Eric", "64"}, {"Charles", "22"}};
            Map<String, List<String>> map = new HashMap<>();
            List<String> score1;
            
            for(int i = 0; i < students.length; i++) {
            	score1 = map.get(students[i][0]);
            	if (score1 == null) {
            	    score1 = new ArrayList<>();
            	    map.put(students[i][0], score1);
            	}
            	map.get(students[i][0]).add(students[i][1]);
            }
            System.out.println(map.toString());
	}
}