C B A->YS YC 0 0 0 YS=0 YC=0 1 0 0 YS=1 YC=0 1 1 0 YS=0 YC=1 0 1 0 YS=1 YC=0 0 1 1 YS=0 YC=1 1 1 1 YS=1 YC=1 1 0 1 YS=0 YC=1 0 0 1 YS=1 YC=0 function: YS = !(!C && !B && !A || C && B && !A || !C && B && A || C && !B && A) function: YC = !(!C && !B && !A || C && !B && !A || !C && B && !A || !C && !B && A)