#include #include using namespace std; using namespace atcoder; typedef modint998244353 mint; typedef long long ll; int main(){ string a; cin >> a; string b; cin >> b; int x = 0, y = 0; for (int i=0; i<(int)a.size(); i++){ x *= 2; x += a[i] - '0'; } for (int i=0; i<(int)b.size(); i++){ y *= 2; y += b[i] - '0'; } int z = x ^ y; cout << z << endl; }