If S and P are sum and product respectively of all real values of x satisfying equation |4−|x−1||=3 then