grammar S 0S1 S A A 1A0 A S A