a
ba
aa
ab
abc
c
d