The HTML version of the statement is not available.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.
Public test cases
Input
4
3 5
2 5
2 7
9 5
Output
Walk 5 steps north
Walk 3 steps east
Walk 1 steps west
Walk 2 steps north
Walk 2 steps south
Walk 7 steps east
Input
4
3 5
2 5
2 7
9 5
Output
Walk 5 steps north
Walk 3 steps east
Walk 1 steps west
Walk 2 steps north
Walk 2 steps south
Walk 7 steps east