UVA10512 A Day in Math-land

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1453 [PDF](https://uva.onlinejudge.org/external/105/p10512.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10512/25e915968672e796f227f13bd4a7c8f65299483a.png)

Input Format

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

Output Format

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