UVA12664 Interesting Calculator

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4402 [PDF](https://uva.onlinejudge.org/external/126/p12664.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12664/39ff75501946b7cc59fd346f61dd0f4ac66766b5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12664/7439a7079a1f35d33cb007bf153ef2b7b2532ab3.png)

Output Format

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