UVA13218 Broken Calculator Keys

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=878&page=show_problem&problem=5141 [PDF](https://uva.onlinejudge.org/external/132/p13218.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13218/62bcc4241880c65e0dccb03c4b7e78e53b98e338.png)

Input Format

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

Output Format

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