UVA286 Dead Or Not -- That Is The Question

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=222 [PDF](https://uva.onlinejudge.org/external/2/p286.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA286/5d9fbfda28dd777fba1c5f131b4cd4345ea55c26.png)

Input Format

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

Output Format

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