public class Solution {
    public static Map<String, Date> createMap() throws ParseException {
        DateFormat dateFormat = new SimpleDateFormat("MMMMM d yyyy", Locale.ENGLISH);
        Map<String, Date> map = new HashMap<>();
        map.put("Сталлоне", dateFormat.parse("JUNE 1 1970"));
        map.put("Белуччи", dateFormat.parse("JUNE 1 1970"));
        map.put("Альпачино", dateFormat.parse("JUNE 1 1970 "));
        map.put("ДиКаприо", dateFormat.parse("SEPTEMBER 1 1970"));
        map.put("Деймон", dateFormat.parse("DECEMBER 1 1970"));
        map.put("Шварц", dateFormat.parse("NOVEMBER 1 1970"));
        map.put("Лайвли", dateFormat.parse("JULY 1 1970"));
        map.put("Армстронг", dateFormat.parse("SEPTEMBER 1 1970"));
        map.put("Энрике", dateFormat.parse("MARCH 1 1970"));
        map.put("Кристофер", dateFormat.parse("AUGUST 1 1970"));

        return map;
    }

    public static void removeAllSummerPeople(Map<String, Date> map)throws ParseException {

       HashMap<String,Date> list = new HashMap<>(createMap());

        DateFormat dateFormat = new SimpleDateFormat("MMMMM", Locale.ENGLISH);

        Iterator<Map.Entry<String,Date>> iterator = list.entrySet().iterator();

        while (iterator.hasNext()) {

            Map.Entry<String, Date> pair = iterator.next();
            String key = pair.getKey();
            Date value = pair.getValue();

            Date june = dateFormat.parse("JUNE");
            Date july = dateFormat.parse("JULY");
            Date august = dateFormat.parse("AUGUST");
            if (value.equals(june)||value.equals(july)||value.equals(august)) {
                iterator.remove();
            }


        }
        /*for(Map.Entry<String , Date> em : list.entrySet()) {
            System.out.println(em);
        }*/

    }

    public static void main(String[] args)throws ParseException {
        /*HashMap<String,Date> list = new HashMap<>();
        removeAllSummerPeople(list);*/
    }
}