I don't think you've stated the problem correctly. Here's my sample run:

Please input 6 lines of text.
This is the first line.
This is the second line.
this is the third line.
this is the...