#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; getline(cin, s1); getline(cin, s2); for (auto c : s1) { if (s2.find(c) == -1) cout << c; } return 0; }