Printing of Integers

How we are getting 30Hello1020??..
I am getting it as 30Hello30
Please help me with reason…
i am not able to understand the reason.

can you please share the editorial code?