UVA219 Department of Redundancy Department

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=155 [PDF](https://uva.onlinejudge.org/external/2/p219.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA219/3d6459b1e8bd47eb09d6653f3bc70892d6cc7bcf.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA219/52ea9935f70c958e187c26260c862b1cb33124c5.png)

Output Format

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