for(s='';t=readline();)for(i in print(s+t),t)s+=' '