Codeforces #596 div2 D - Power Products

NoSuchKey