while''do x=io.read()i=1 while x:find'^d 'do x=x:sub(3)i=i+1 end for n=1,i do print(x)end end