UVA198 Peter's Calculator

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=134 [PDF](https://uva.onlinejudge.org/external/1/p198.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA198/dff6a6f473136c9470172752d39fac83d2bc415f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA198/05b7f76ee2feaf822745320f25be412af4243f8f.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA198/0375d2529d986a089bac9b20c6ee69cc1e05f854.png)