is playing with a pinwheel! As the wind blows, the pinwheel spins. However, this type of pinwheel is special. It can only rotate in multiples of 90 degrees! Given the coordinates of one of the blades, can you find the new coordinates after a rotation?
Input Specification
The first line will contain the coordinates of the blade, . and are integers. The second line will contain the size of a counterclockwise rotation in degrees, , a non-negative multiple of 90 less than 360.
Output Specification
Output the coordinates of the blade on the same line, after a counterclockwise rotation by degrees.
Subtasks
Subtask 1 [50%]
Subtask 2 [50%]
Sample Input
1 3
90
Sample Output
-3 1
Comments