t=table for l in io.lines()do i=1 while t[i]and l~=t[i]do i=i+1 end t:insert(i,l)end print(t:concat"\n")