Polish notation golf


Statement
You are given a 1-bit operation formula in Polish notation.
Calculate it.
It is possible to parse uniquely without parenthesis but I surround all operations with '[' and ']' in this problem.
Operators are below:
* '&' - AND operator
* '|' - OR operator

Constraints
* 1 ≤ |the input string| ≤ 25
Sample Input
Sample Output
Contest ID
0009
Writer
admin
Publish date
2021/05/13 23:00:00
Solved
211
Best
5
Top player
Yupiteru