#!/usr/bin/env python3 m=1004 y=512 print(y&~m&1023) print(512&~1004) print(bin(1004))