D1 D2 D3 D4 target
A  A  B  D  1
B  B  A  B  1
A  B  D  D  1
A  A  B  D  0
A  A  D  D  1
B  A  D  B  1
D  A  A  B  1
B  B  B  A  1
A  B  D  A  1
A  B  B  D  0
B  B  B  A  1
D  B  B  B  1
B  B  D  B  0
D  A  B  B  0
D  B  B  A  0
D  B  D  D  1
