Context-free grammar for unary addition
w =
Grammar
S → 0S0 | 1S1 | p