Descriptions:

Bear in the Field

CodeForces - 385E