Updated production rules:
rule_165: A75 -> A76 A78 39 A13 A77
rule_172: A82 -> A65 40