#include <iostream>
using namespace std;
int xnor(int a, int b) {
return (a & b) | (~a & ~b);
}
int main() {
cout << xnor(5, 7) << endl << ~(5 ^ 7);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IHhub3IoaW50IGEsIGludCBiKSB7CglyZXR1cm4gKGEgJiBiKSB8ICh+YSAmIH5iKTsKfQoKaW50IG1haW4oKSB7Cgljb3V0IDw8IHhub3IoNSwgNykgPDwgZW5kbCA8PCB+KDUgXiA3KTsKCXJldHVybiAwOwp9