(Not A AND C) OR (A AND B) OR (B AND C)