• + 0 comments
    int("".join(["1" if i == "0" else "0" for i in bin(n)[2:].rjust(32, "0")]), 2)