UVA660 Going in circles on Alpha Centauri

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=8&page=show_problem&problem=601 [PDF](https://uva.onlinejudge.org/external/6/p660.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA660/5118a82a8522d7a2449be0ccb7596bda85b4c593.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA660/4d707706f7e37ce2b040bf444f2927643e251d5f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA660/65ca06700c72c5dec72435ba63f23ba42636782e.png)