Codeforces 1088E Ehab and a component choosing problem

NoSuchKey