CodeForces - 346A Alice and Bob(数论+博弈)

NoSuchKey