#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include <string> using namespace std; int main() { string cipher, hex, res; cin >> cipher; cin >> hex; int idx = 0; for(int i=0; i<(int)hex.size(); i+=2){ int key = stoi(hex.substr(i,2), nullptr, 16); res.push_back(cipher[idx] ^ key); idx = (idx + 1) % (int)(cipher.size()); } cout << res << endl; return 0; }