UVA10437 Playing With Fraction

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=16&page=show_problem&problem=1378 [PDF](https://uva.onlinejudge.org/external/104/p10437.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10437/7338abcebc9b86493cbfed229e519c4acf3b75ea.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10437/34d73130024043d5e2c8ffc7ac51fb19f50a8d73.png)