UVA10104 Euclid Problem

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=13&page=show_problem&problem=1045 [PDF](https://uva.onlinejudge.org/external/101/p10104.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10104/d8432c5e14a3099ec1d2fa30ad20970c4e2156c9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10104/780aeeffb4d977d102e402afb0fdfc1cb2fa15cf.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10104/0bb4baddf4288ac74bb6cd2c8e34174c3907213f.png)