a = 16 + 4 + 2 + 1 # 23
b = 0 + 4 + 0 + 1 # 5
print("a & b =", a & b, " Binary =", bin(a & b))
print("a | b =", a | b, " Binary =", bin(a | b))
print("a ^ b =", a ^ b, " Binary =", bin(a ^ b))
print("~b =", ~b, " Binary =", bin(~b & 0xFFFFFFFF))
