UVA10221 Satellites

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1162 [PDF](https://uva.onlinejudge.org/external/102/p10221.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10221/ca46817da26bd1f3f72d91dfc52c718ee788d5cc.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10221/94b06e33a9117bff4b0ced2843e46f435b8cfb79.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10221/c312fc5cf5c8f8592575f7c21a27146f89ddf7d5.png)