#include <iostream>
using namespace std;
#define NUMBER 256
void Delete(char *first, char *second)
{
int hash[NUMBER]={0};
char *p=second;
while(*p)
{
hash[*p]=1;
p++;
}
char *slow=first;
char *fast=first;
while(*fast)
{
if(hash[*fast]==0)
{
*slow=*fast;
slow++;
}
fast++;
}
*slow='\0';
}
void main()
{
char first[]="00f-98877+9897";
char second[]="-+";
Delete(first, second);
cout<<first<<endl;
}