/* 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
{
	private static HashMap<String, HashMap<String, ArrayList>> parentMap = new HashMap<>();

  public static ArrayList<String> getMap(String parentkey, String childKey) {
    return parentMap.get(parentkey).get(childKey);
  }


  public static ArrayList<String> setMap(String parentkey, String childKey, String value) {
    parentMap.computeIfAbsent(parentkey, k->new HashMap<>());
    HashMap<String, ArrayList> childMap = parentMap.get(parentkey);
    childMap.computeIfAbsent(childKey, k -> new ArrayList<>()).add(value);
    return getMap(parentkey, childKey);
  }

  public static void main(String[] args) {
    setMap("India", "EmployeeName", "A");
    setMap("India", "EmployeeName", "B");
    setMap("India", "EmployeeName", "C");
    setMap("China", "EmployeeName", "D");
    setMap("China", "EmployeeName", "E");
    setMap("China", "EmployeeName", "F");
    System.out.println("India" + getMap("India", "EmployeeName"));
    System.out.println("China" + getMap("China", "EmployeeName"));
  }
}