#include using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); string a, b; cin >> a >> b; int x = 0, y = 0; for(auto c : a){ x *= 2; x += c - '0'; } for(auto c : b){ y *= 2; y += c - '0'; } cout << (x ^ y) << endl; }