UVA275 Expanding Fractions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=211 [PDF](https://uva.onlinejudge.org/external/2/p275.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA275/2fb2143a4a80254d37cc70dbe5b8799185780683.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA275/754550396d57050bc66bb26f8e60a26369e41ca3.png)