UVA10730 Antiarithmetic?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=19&page=show_problem&problem=1671 [PDF](https://uva.onlinejudge.org/external/107/p10730.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10730/3019f6bd1173f59a3172c85663b182aec5b49b2f.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10730/51145ddd4453657bbe72e7bcacde898dc79a64e1.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10730/11f2e5e1db920dda39e55a98a4c4eab4ce6f0f41.png)