I got WA, copying input put it in custom input work correctly and return the right answer.
Same is the case with me. Happening for input : A = 15 and B =9.