Updated production rules:
rule_3: A3 -> 29 A4 A5
rule_34: A27 -> 22 17
rule_48: A39 -> 30 28