CodeForces 245C-Game with Coins

NoSuchKey