UVA11154 An Octal World

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2095 [PDF](https://uva.onlinejudge.org/external/111/p11154.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11154/1dc0320dad22b0618245817ef654d7673a80b1bb.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11154/545e90ab5334ebc01865f237ea51e844a1017d9e.png)