UVA296 Safebreaker

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=4&page=show_problem&problem=232 [PDF](https://uva.onlinejudge.org/external/2/p296.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA296/048748b5d7fb2881dd4afd683fb197df3eb10a92.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA296/67be86be593e608fc0ade798908270ec4d4a5103.png)

Output Format

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