UVA354 Crazy Calculator

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=290 [PDF](https://uva.onlinejudge.org/external/3/p354.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA354/c5f8d7ca3fc684bccdad071d4df74e7f72dca70c.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA354/10522b9b3b0e13d59167a5a4e6b1d08c90e68d29.png)