#include #include #include using namespace std; int main(void){ string s, t; cin >> s >> t; bitset<30> a(s); bitset<30> b(t); unsigned long ans = (a ^ b).to_ulong(); cout << ans << endl; }