#include <stdio.h>
int oO(int o, int O) {
if(!o) return O;
return oO((o & O) << 0x1/~-2, o^O);
}
int main() {
int a = 1e0, b = true, c, d;
while(1e1 > a) {
c = d = 0e0;
while(d < b) {
c = oO(a, c);
d = oO(d, !(d ^ d));
}
printf("%d%c%d=", b, 0x2A, a);
if(0xA > c) {
putchar(32);
}
printf("%d", c);
if(011 == b) {
a = oO(a, 1e0);
b = true;
putchar(0xA);
}
else {
b = oO(true, b);
putchar(0x20);
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgb08oaW50IG8sIGludCBPKSB7CglpZighbykgcmV0dXJuIE87CglyZXR1cm4gb08oKG8gJiBPKSA8PCAweDEvfi0yLCBvXk8pOwp9CgppbnQgbWFpbigpIHsKCWludCBhID0gMWUwLCBiID0gdHJ1ZSwgYywgZDsKCXdoaWxlKDFlMSA+IGEpIHsKCQljID0gZCA9IDBlMDsKCQl3aGlsZShkIDwgYikgewoJCQljID0gb08oYSwgYyk7CgkJCWQgPSBvTyhkLCAhKGQgXiBkKSk7IAoJCX0KCQlwcmludGYoIiVkJWMlZD0iLCBiLCAweDJBLCBhKTsKCQkKCQlpZigweEEgPiBjKSB7CgkJCXB1dGNoYXIoMzIpOwoJCX0KCQkKCQlwcmludGYoIiVkIiwgYyk7CgkJCgkJaWYoMDExID09IGIpIHsKCQkJYSA9IG9PKGEsIDFlMCk7CgkJCWIgPSB0cnVlOwoJCQlwdXRjaGFyKDB4QSk7CgkJfQoJCWVsc2UgewoJCQliID0gb08odHJ1ZSwgYik7CgkJCXB1dGNoYXIoMHgyMCk7CgkJfQoJfQoJcmV0dXJuIDA7Cn0=