I did not intend to compose such a complicated problem. One of my earlier composition attempt was something like what is shown in this diagram. Alas, this composition does not work. To make it work, I had to connect the and chains somehow, which resulted in the monster sized composition.