UVA11110 Equidivisions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2051 [PDF](https://uva.onlinejudge.org/external/111/p11110.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11110/0e801b46ce56e196b8c65af2e548bd9affc90be5.png)

Input Format

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

Output Format

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