s=io.read()for i=0,9 do print(s:gsub("%S+",function(w)return#w>i and w or(" "):rep(#w)end):match"(.-) *$")end