[math-fun] simulating three inverters with two inverters