/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.atomic.AtomicInteger;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Map
<String, Integer
> map11
= new HashMap
<>(); map11.put("foo", 1);
before.put("foo", map11);
Map
<String, Integer
> map12
= new HashMap
<>(); map12.put("bar", 2);
before.put("bar", map12);
before.values().forEach(value -> after.put(after.size(), value));
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuSGFzaE1hcDsKaW1wb3J0IGphdmEudXRpbC5NYXA7CmltcG9ydCBqYXZhLnV0aWwuY29uY3VycmVudC5hdG9taWMuQXRvbWljSW50ZWdlcjsKCi8qIE5hbWUgb2YgdGhlIGNsYXNzIGhhcyB0byBiZSAiTWFpbiIgb25seSBpZiB0aGUgY2xhc3MgaXMgcHVibGljLiAqLwpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkgTWFwPFN0cmluZywgTWFwPFN0cmluZywgSW50ZWdlcj4+IGJlZm9yZSA9IG5ldyBIYXNoTWFwPD4oKTsKICAgICAgICBNYXA8U3RyaW5nLCBJbnRlZ2VyPiBtYXAxMSA9IG5ldyBIYXNoTWFwPD4oKTsKICAgICAgICBtYXAxMS5wdXQoImZvbyIsIDEpOwogICAgICAgIGJlZm9yZS5wdXQoImZvbyIsIG1hcDExKTsKICAgICAgICBNYXA8U3RyaW5nLCBJbnRlZ2VyPiBtYXAxMiA9IG5ldyBIYXNoTWFwPD4oKTsKICAgICAgICBtYXAxMi5wdXQoImJhciIsID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