UVA12446 How Many... in 3D!

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3877 [PDF](https://uva.onlinejudge.org/external/124/p12446.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12446/9316d95101b7f1a602e367c178f3f792d93038f6.png)

Input Format

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

Output Format

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