Fixed parenthetic logic