char*p,*w;main(t,q){for(;p=gets(q);)for(t=0;*p?:w&&puts(p+98,w=w[99]=!--t,p-=80);++p)p[98]=!(*p%2?--t:t++)?w=p,*p:32;}