Introduction - If you have any usage issues, please Google them yourself
Robot' s initial coordinates (x, y), (x-axis east-west, y for the North and South) of Hsiao Ming' s control commands are as follows n, s, w, e, respectively north, south, west, east, away step, a step as a unit length. Input multiple sets of test data. Each data line, the format xy control. x, y as integer (absolute value is not more than 1 million) that the initial coordinates of the robot, control does not contain a space for the four directions by the control string consisting of letters, the length does not exceed 1000 Output the first group of data output i , be sure to output " Case I:" . robot finished in the implementation of the order of the coordinates. Sample Input 4 2 nnnwwwnnneees 3 5 ssseeessswww Sample Output Case 1: 4 7 Case 2: 3-1