6
You have two values each of which is either 0 representing "unknown", or one of 1,2,3. Merge them into a single value as follows:
If both values are nonzero and equal, output that value:
(3,3) -> 3
If both values are nonzero but unequal, output 0 for unknown:
(1,2) -> 0
If one value is zero and...