CodeForces - 935E Fafa and Ancient Mathematics

NoSuchKey