Find the Direction solution codechef
Chef is currently facing the north direction. Each second he rotates exactlydegrees in clockwise direction. Find the direction in which Chef is facing after exactly seconds.
There are only 4 directions: North, East, South, West (in clockwise order).
- First line will contain , number of testcases. Then the testcases follow.
- Each testcase contains of a single integer .
For each testcase, output the direction in which Chef is facing after exactlyseconds.
Sample Input 1
3 1 3 6
Sample Output 1
East West South
Chef is facing North in the starting.
Test Case: After second he turns degrees clockwise and now faces the east direction.
Test Case: Direction after second- east
Direction afterseconds- south
Direction afterseconds- west