UVA11428 Cubes

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=26&page=show_problem&problem=2423 [PDF](https://uva.onlinejudge.org/external/114/p11428.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11428/fd80aef529f1041761cf8f51048f5adf8b774350.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11428/18791d4082b117a39982592081a4f386a6c60e46.png)