def METHOD_NAME(n, r):
    if r.isSetMath():
        formula = formulaToString(r.getMath())
        if len(r.getVariable()) > 0:
            print("Rule " + str(n) + ", formula: "
                             + r.getVariable() + " = " + formula + "\n")
        else:
            print("Rule " + str(n) + ", formula: "
                             + formula + " = 0" + "\n")