UVA10211 Divisibility Testing! Wow!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1152 [PDF](https://uva.onlinejudge.org/external/102/p10211.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10211/ebddd983611a420115472e26b37a189fcf4c168c.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10211/556c5383f3e38aa4021fd20db8fe80109039e0f8.png)

Output Format

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