def METHOD_NAME(n, r):
    if r.isSetKineticLaw():
        kl = r.getKineticLaw()
        if kl.isSetMath():
            formula = formulaToString(kl.getMath())
            print("Reaction " + str(n) + ", formula: " + formula + "\n")