for(o=[];r=readline();)for(x=0;r[x];x++)o[x]=r[x]+(o[x]||'\n');;o.map(putstr)