Xor

The xor gate will turn its output on if an odd amount of its inputs is on.