247

Problem ID: 247

Even though some of the input on uDebug has cases where m = 0, this is most likely not the case in the judge's input.