ab+1 = a+c = abc, ac+1 = b+c