UVA13069 The calculator machine

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=866&page=show_problem&problem=4967 [PDF](https://uva.onlinejudge.org/external/130/p13069.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13069/7c84e5b8d2576e3544810e06711ca6788cfd9509.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13069/5d41f0acc841e9035c7cd77d9fabca1ec7a3a733.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13069/235e20875f047bf278222e0394a4a1fdce74899c.png)