UVA11227 The silver bullet.

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2168 [PDF](https://uva.onlinejudge.org/external/112/p11227.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11227/abe5a438408b9c3df64edd0f4f0838c012c72b84.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11227/92ebc975a919eefd3c7a1e942598d7dcb39c527c.png)

Output Format

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