xyz-xy-xz+x-yz+y+z-1
=xy(z-1)-x(z-1)-y(z-1)+(z-1)
=(z-1)(xy-x-y+1)
=(z-1)[x(y-1)-(y-1)]
=(z-1)(y-1)(x-1)