BlueBook
Given an integer
The bearings arranged in increasing order of "size" are: N
, E
, S
, W
.
This means choose N
over E
if the input is N
over W
when the
input is
Input Specification
The input consists of an integer
Output Specification
Output the closest compass bearing according to the input.
Sample Input
Copy
2
45
180
Sample Output
Copy
N
S
Comments