IN0 IN1 IN2 S0 S1 S2->Z 0 0 0 0 0 0 Z=0 1 0 0 0 0 0