V;main(A){char*S,*t,*T,*v;short*w;for(;gets(S=&A);puts())for(t=T=strdup(w=v=&V);*S|*T;*v++=*T++?:*S?*t++:0)*v++=*S?*S++:*w++;}