# Python Bitwise Operator
a=int(input())
b=int(input())
print("Bitwise AND ",a&b)
print("Bitwise OR",a|b)
print("Bitwise XOR",a^b)
print("Bitwise Not",~a)
print("Bitwise Left Shift 1:",a<<1)
print("Bitwise Right Shift 1:",a>>1)
IyBQeXRob24gQml0d2lzZSBPcGVyYXRvcgphPWludChpbnB1dCgpKQpiPWludChpbnB1dCgpKQpwcmludCgiQml0d2lzZSBBTkQgIixhJmIpCnByaW50KCJCaXR3aXNlIE9SIixhfGIpCnByaW50KCJCaXR3aXNlIFhPUiIsYV5iKQpwcmludCgiQml0d2lzZSBOb3QiLH5hKQpwcmludCgiQml0d2lzZSBMZWZ0IFNoaWZ0IDE6IixhPDwxKQpwcmludCgiQml0d2lzZSBSaWdodCBTaGlmdCAxOiIsYT4+MSk=