Descriptions:

Fox and Number Game

CodeForces - 389A