Codeforces 975D Ghosts 【math】

NoSuchKey