codeforces 722D. Generating Sets

NoSuchKey