Codeforces #616 Div2 D. Irreducible Anagrams

NoSuchKey