UVA11436 Cubes - EXTREME!!!

Description

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

Input Format

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

Output Format

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