title: reverse text with end
body: <p>I know there is already reverse solutions but can not figure concept out for the following question.</p>
  
  <blockquote>
    <p>.wons sa etihw saw eceelf sti bmal elttil a dah yraM end</p>
  </blockquote>
  
  <p>so it returns </p>
  
  <blockquote>
    <p>Mary had a little lamb its fleece was white as snow.</p>
  </blockquote>
  
  <p>Am I far off?</p>
  
  <pre><code> line=raw_input()
   lines = []
   i = 0
   while line != "end":
       lines.append(line)
       line=raw_input()
   for line in lines[::-1]:
   print line
  </code></pre>