UVA12138 Chemical Plant
Description
[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=243&page=show_problem&problem=3290
[PDF](https://uva.onlinejudge.org/external/121/p12138.pdf)

Input Format

Output Format
