Max's Anger Contest Series 2 P1 - Directed Anger
View as PDFAfter Max successfully completed his useless List II Communication credit last term, he lost his sense of direction.
He only remembers the direction he was facing originally, ; how many times he turned 90 degrees left, 
; and how many times he turned 90 degrees right, 
.
Can you tell Max what direction he is facing after all of those turns?
Constraints
 is one of the four cardinal directions: 
N, S, E, or W.
.
Input Specification
The first line will contain , the direction he was facing.
The second line will contain , the number of times he turned 90 degrees left.
The third line will contain , the number of times he turned 90 degrees right.
Output Specification
Output the direction after all the turns have been completed.
Sample Input 1
S
2
1
Sample Output 1
E
Sample Input 2
N
5
0
Sample Output 2
W
Comments