Updated production rules:
rule_3: A2 -> 24 A33 A31 A37 A3 23 A3 22 A36 18 21 A33
rule_7: A3 -> 25 6