Updated production rules:
rule_3: A3 -> 21 A4 A5
rule_24: A19 -> 12 19