UVA10057 A mid-summer night's dream.

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=998 [PDF](https://uva.onlinejudge.org/external/100/p10057.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10057/947458f2087a5252ca830a457cfe5689ed830a3d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10057/035cbde8f68aef8ddaff19a99684c3a3d8847bde.png)