UVA12552 The Moon of Valencia

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=3997 [PDF](https://uva.onlinejudge.org/external/125/p12552.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12552/d6540a50db6283ee5b6098efca62a5754e17ff20.png)

Input Format

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

Output Format

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