codeforces#687 B. Remainders Game

NoSuchKey