UVA317 Hexagon

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=253 [PDF](https://uva.onlinejudge.org/external/3/p317.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA317/d1e5ba7e86c88da63aa2df9af8336255b26ef433.png)

Input Format

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

Output Format

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