Directional Move

Problem Name:
Directional Move
Site:CodeForces
Links:
Tags: