for(a=readline(i=-1);i++<15;)print(a.replace(/\S+/g,function(x)x.replace(/./g,x[i]?"$&":" ")).trimRight())