Which signal is S(inverted)? Do you mean /SUM (the input of the output inverter)?
What is the condition for this node to be connected to VDD?
What is the condition for this node to be connected to GND?
Can both conditions be met sumultaneously?
By the way: your schematic would be much better readable if you added the tiny dots where lines cross to indicate an electrical connection. This is standard.