UVA11593 Fractions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=27&page=show_problem&problem=2640 [PDF](https://uva.onlinejudge.org/external/115/p11593.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11593/2fc76d16e1fb7f66508ce6b2ee0f25caaa660680.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11593/4629770380021810cbbb7c93fcb299db0e4de35d.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11593/5280f199e6dc8b1f2986a44ae6cfdb5cd61a6484.png)