(A Or B) And Not (A And B)
You're looking for a XOR, depending on the language it may be a single operation.