UVA197 Cube

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=133 [PDF](https://uva.onlinejudge.org/external/1/p197.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA197/af47982e040ae3ecc7576ec75d891c7a5fdea6b5.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA197/11983a6179b95b5c833ea511a972d6efe9dfbb5b.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA197/28e4bf3cb7ec89d705305142a3294d591503998d.png)