UVA982 Cube

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=923 [PDF](https://uva.onlinejudge.org/external/9/p982.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA982/6f54fd24c9ebfb12ad1a9e78dce82ade765879db.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA982/6ee8d4df69e37979f6650caac756d94fddd97b5a.png)