word copy rules $[A]$->[A][A] input $abaa$