while""do a=io.read()d=a:sub(-1)print(a:sub(1,1).." "..d.." "..1+#a-a:find(d))end