main(b){char*p=sbrk(1),*t=read(0,p+1)+p;for(;b%65;p++)strstr(p,b=*p>10?b:t)-b?*t+++=*p:1;puts(p);}