either = in[0] or in[1];
both = in[0] and in[1];
out[0] = either and (not both);
