UVA876 Balanced Expressions

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=817 [PDF](https://uva.onlinejudge.org/external/8/p876.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA876/809607c5c9d7123d97799e38e5c8d279bf50f3f4.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA876/62b272e447f577c7b8deb653fbfb37d970c05a30.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA876/4e8f28ca3048052f497f0fd766077673d45bfb24.png)