Updated production rules:
rule_4: A2 -> A4 A3 3 2
rule_30: A16 -> A17 10 6