UVA10677 Base Equality

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1618 [PDF](https://uva.onlinejudge.org/external/106/p10677.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10677/42d95fd6a4aafbf8359acff029a6e407a213fcfb.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10677/12df7418209c3f7ef7394b3349ff4d503135f594.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10677/7430f42867081bd74643f1242cb6f2c73f880baf.png)