#Lutece1812. ryt Loves AI Robots
ryt Loves AI Robots
Migrated from Lutece 1812 ryt Loves AI Robots
All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.
Description
Recently, ryt got a programmable robot named AR.He developed a program instructing AR to find a girlfriend for him.
At time , AR is located at , facing toward the positive direction of the -axis. Every second, AR will advance metres toward its current facing direction. Smart ryt knows that AR cannot finish the mission if it only moves in one direction. So he lets AR to turn its direction with degrees counter-clockwisely at every second passed, namely, at time and so on. ryt armed with excellent programming skills, the turning of AR costs no time and is done exactly where it is.
Finally at time , ryt receives a message from his AR that his girlfriend is found. But he forget to write the procedure of sending postion back. Now ryt is depressed. Could you tell him where his girlfriend is to cheer him up?
Input
Input contains two lines.
The first line of input contains two integers and (, ).
The second line contains only one integer ().
Output
Output two integers, indicating the and coordinates of his girlfriend, rounded to nearest integers.
Samples
1 90
3
0 1