#include //#include using namespace std; //using namespace atcoder; #define rng(i,a,b) for(int i=int(a);i> A >> B; int a = 0; int b = 0;; int c = 1; for(int i = A.size()-1; 0 <= i; --i){ a += (A.at(i) - '0') * c; c *= 2; } c = 1; for(int i = B.size()-1; 0 <= i; --i){ b += (B.at(i) - '0') * c; c *= 2; } cout << (a ^ b) << endl; }