Koa and the Beach (Easy Version)

CodeForces - 1384B1