include [HTML_REMOVED]
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
string removeCharacters(const string& S1, const string& S2) {
bool foundInS2[256] = {false}; // 假设只处理ASCII字符
for (char c : S2) {
foundInS2[static_cast[HTML_REMOVED](c)] = true;
}
string result;
for (char c : S1) {
if (!foundInS2[static_cast<unsigned char>(c)]) {
result += c;
}
}
return result;
}
int main() {
string S1, S2;
getline(cin, S1); // 读取第一行,包含S1
getline(cin, S2); // 读取第二行,包含S2
string result = removeCharacters(S1, S2);
cout << result << endl; // 输出结果
return 0;
}