#include using namespace std; int main(){ string A, B; cin >> A >> B; bitset<30> a(A), b(B); a ^= b; cout << a.to_ulong(); }