UVA10287 Gifts in a Hexagonal Box

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=14&page=show_problem&problem=1228 [PDF](https://uva.onlinejudge.org/external/102/p10287.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10287/ab7fa08399739553290b2739f18a3859f43ed68a.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10287/7f4343b7c39ff18ada0a16b8661de776af718a72.png)

Output Format

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