UVA11311 Exclusively Edible

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2286 [PDF](https://uva.onlinejudge.org/external/113/p11311.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11311/4cc98920c1b3016989172d764c8c87834658822d.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11311/39959b7f71173a74a9b6abc289643ac8e8a1c831.png)