$S$ $\longrightarrow$ $B$ c $D$ $B$
$B$ $\longrightarrow$ a b c $S$
$D$ $\longrightarrow$ d $\varepsilon$