UVA10900 你想当2^n元富翁吗? So you want to be a 2n-aire?

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=21&page=show_problem&problem=1841 [PDF](https://uva.onlinejudge.org/external/109/p10900.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10900/f1ba9ec1e6c53efbf6006769c69b3fb5b41b5910.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10900/2c15f0c9f6a45695ac1e17e8b075318a280669c6.png)