UVA11064 Number Theory

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=2005 [PDF](https://uva.onlinejudge.org/external/110/p11064.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11064/a8c7d6c901e1cf5bc23b625704f03c9f70820dbd.png)

Input Format

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

Output Format

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