C=((not A) and B)or ((not B) or ((not B) and A)

C= not ((A or (not B)) and ((not A) or B)