Simplified Grammar is:
A useless
Otherwise, applying these two algorithms in reverse:
no useless symbols found.
useless
still
remains.