UVA12216 How Many bases?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3368 [PDF](https://uva.onlinejudge.org/external/122/p12216.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12216/287459d7c4705e9ad2c0799866dfb77ecd0682e0.png)

Input Format

N/A

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12216/648843a2e245811239935d3c5180fb21e9999125.png)