Thank You Richard Lobb !
Apologies for not properly putting up my query in earlier message. I was actually stuck at the point as what is to be entered in the first test case 1 box, others standard input, expected are pretty much straight forward. But I left it blank and it worked absolutely fine.
I have another query, will start a separate discussion topic for the same.