Updated production rules:
rule_3: A3 -> 21 A4 A5
rule_31: A26 -> 18 A24 19