Please check my changes for inverted rows from Rusovich Yuriy

Mistake: 
bad output on input.txt:
"asd
asd
"