#include <stdio.h>
int main(void) {
unsigned char a=0xa7, b=0x25;
unsigned char c, answer =0;
int i;
for (i=0; i<8; i++)
{
c = (a>>i)+(b>>i);
c <<= 7;
c >>= 7;
c <<= i;
answer += c;
}
printf("%X, %X\n", answer
, a
^b
);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7Cgl1bnNpZ25lZCBjaGFyIGE9MHhhNywgYj0weDI1OwoKdW5zaWduZWQgY2hhciBjLCBhbnN3ZXIgPTA7CmludCBpOwoKZm9yIChpPTA7IGk8ODsgaSsrKQp7CiAgIGMgPSAoYT4+aSkrKGI+PmkpOwogICAKICAgYyA8PD0gNzsKICAgYyA+Pj0gNzsKICAgCiAgIGMgPDw9IGk7CiAgIAogICBhbnN3ZXIgKz0gYzsKfQoKcHJpbnRmKCIlWCwgJVhcbiIsIGFuc3dlciwgYV5iKTsKCglyZXR1cm4gMDsKfQo=