Griffy has made it past all of Don Mills's plushies, and has ended up in their parking lot! However, having bumped into so many plushies, Griffy's mind is not very clear. After a while strolling around, instead of reaching the school Griffy is now lost! Please help Griffy find where he ended up! Griffy started at the relative position
Note: coordinate format will be
Input Specification
The first line will contain a single integer
Next
North
, South
, West
, East
(capitalized, no spaces).
Output Specification
One line, the coordinates where Griffy ends up, space separated.
Sample Input
3
North
1
South
2
East
5
Sample Output
5 -1
Comments
Are we assuming that he starts at point (0,0)? I dont really understand the output, could someone clear it up for me?
Thanks!
Griffy started at the relative position (0,0). I assume reading the statement could help :P.
How did i miss that ? -_- My bad, thanks!