#include <stdio.h>
#define MAXLINE 100
int main()
{
char c;
char line[MAXLINE]={NULL};
char Eline[MAXLINE]={NULL};
int i=0;
int j=0;
int k,l,m,n;
c=getchar();
while ((c != '\n') && (c != EOF)){
line[i] = c;
i++;
c= getchar();
}
c=getchar();
while ((c != '\n') && (c != EOF)){
Eline[j] = c;
j++;
c= getchar();
}
for(k=0; k<j; k++){
for(l=0; l<i; l++){
if(line[l]==Eline[k]) {
for (m = l; line[m] != NULL ; m++)
line[m] = line[m+1];
line[i-1]= NULL;
i--;
}
}
}
printf("%s", line);
return 0;
}