import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
class Ideone
{
static Map
<Integer,Object
> map
= new ConcurrentHashMap
<>(); static int sz;
static
{
List
<Integer
> list
= Arrays.
asList(6,
1,
516,
15,
435,
452,
8,
23,
18,
23,
76,
266,
544,
815,
315,
672,
145,
414); sz = list.size();
}
{
int loop = 1;
{
System.
out.
println("--> "+i
+" "+(loop
++)+"/"+sz
); update(i);
}
assert(loop == sz);
}
{
map.remove(key);
}
}
aW1wb3J0IGphdmEudXRpbC5BcnJheXM7CmltcG9ydCBqYXZhLnV0aWwuTGlzdDsKaW1wb3J0IGphdmEudXRpbC5NYXA7CmltcG9ydCBqYXZhLnV0aWwuY29uY3VycmVudC5Db25jdXJyZW50SGFzaE1hcDsKCmNsYXNzIElkZW9uZQp7CglzdGF0aWMgTWFwPEludGVnZXIsT2JqZWN0PiBtYXAgPSBuZXcgQ29uY3VycmVudEhhc2hNYXA8PigpOwoJc3RhdGljIGludCBzejsKCXN0YXRpYwoJewoJCUxpc3Q8SW50ZWdlcj4gbGlzdCA9IEFycmF5cy5hc0xpc3QoNiwgMSwgNTE2LCAxNSwgNDM1LCA0NTIsIDgsIDIzLCAxOCwgMjMsIDc2LCAyNjYsIDU0NCwgODE1LCAzMTUsIDY3MiwgMTQ1LCA0MTQpOwogICAgICAgIHN6ID0gbGlzdC5zaXplKCk7CiAgICAgICAgZm9yKEludGVnZXIgaSA6IGxpc3QpCiAgICAgICAgICAgIG1hcC5wdXQoaSwgbmV3IE9iamVjdCgpKTsKCX0KCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewkKICAgICAgICBpbnQgbG9vcCA9IDE7CiAgICAgICAgZm9yKEludGVnZXIgaSA6IG1hcC5rZXlTZXQoKSkKICAgICAgICB7CiAgICAgICAgICAgIFN5c3RlbS5vdXQucHJpbnRsbigiLS0+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