Balanced partition and Boolean parenthesis.