Logical not mathematical operators nesting