Online Judge is to compare your output with the desired output specific by the author of the problem.
This problem will expect the output:
So, you should output only the required output by this program:
The below program looks similar but will not be accepted because of the newline at the end:
Enjoy your time with The Judge!