The rst line of input is the upper-right coordinates of the rectangular world, the lower-left coordinates
are assumed to be 0,0.
The remaining input consists of a sequence of robot positions and instructions (two lines per robot).
A position consists of two integers specifying the initial coordinates of the robot and an orientation
(N,S,E,W), all separated by white space on one line. A robot instruction is a string of the letters 'L',
'R', and 'F' on one line.
Each robot is processed sequentially, i.e., nishes executing the robot instructions before the next
robot begins execution.
Input is terminated by end-of-le.
You may assume that all initial robot positions are within the bounds of the specied grid. The
maximum value for any coordinate is 50. All instruction strings will be less than 100 characters in
length.