Bug in reading input / printing output


#1

In python 2 / 3, if I test the problem, it gives me an entirely different output from the correct one, however if I put the same input case in the “test with custom input section”, I obtain the desired output.