8 a b d A B C D E A -> BCD | BC | E E -> AB B -> b | bB D -> dd | a