UVA12519 The Farnsworth Parabox

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=441&page=show_problem&problem=3964 [PDF](https://uva.onlinejudge.org/external/125/p12519.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12519/b563129a365f56d2078eac4512b639e46b5bc2a7.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12519/86cc3ea56acc2e3a2095d78401430872017c7e26.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12519/08d77e58667c3bf6d2d82115fae382fb7b4ed37b.png)