S -> A S d S -> B S S -> _ A -> a A -> c B -> a B -> b