main(c,b){char*p;for(;p=gets(b);puts(""))for(;c=*p;p++)p=index(p+1,putchar(c))?:index(b,c);}