The Logic
There's one more gate. The NOT gate.
One input. One output. Whatever comes in, gets flipped.A 1 becomes a 0.A 0 becomes a 1.