for(;a=readline(r=i="");print(r))for(;"stop".match("[^"+r+"]");)r+=a[i++]