CBAYSYC
0 0 0 00
1 0 0 10
1 1 0 01
0 1 0 10
0 1 1 01
1 1 1 11
1 0 1 01
0 0 1 10
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)