Cardinal Commotions

Today Ms.Lee is teaching Cardinal Directions (N, E, S, W) to her class. How exciting! Paul starts daydreaming on and off about his next programming question that he is going to make. Suddenly Ms.Lee asks Paul to figure out the Intercardinal Directions (NE, SE, SW, NW, NNE, ...) of the few compass degrees shown on the board. Paul can't help but panic as he has been daydreaming for the entire duration of the period. Help Paul out!


Input Specifications


The input consists of one line containing a floating-point value N \(-10^9 \le N \le 10^9\) with a maximum of 6 digits after the decimal point.


Output Specifications


Output in one line, the simplest (shortest in string length) Intercardinal Direction that is equal to the degrees N represents. Note that the absolute difference between the degrees that the Intercardinal Direction represents and N must be equal or below \( 10^{-7} \) for the output to be considered correct.


Sample Input 1


90


Sample Output 1


E


Sample Input 2


641.25


Sample Output 2


WWNW


Sample Input 3


69


Sample Output 3


https://pastebin.com/BmW3FXSc

Comments
  • There are no comments.