#include <iostream>
bool isPowerOf2(int number) { return !(number & (number - 1)); }
int main() {
std::cout << isPowerOf2(1024) << std::endl;
std::cout << isPowerOf2(1023) << std::endl;
std::cout << isPowerOf2(0) << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKYm9vbCBpc1Bvd2VyT2YyKGludCBudW1iZXIpIHsgcmV0dXJuICEobnVtYmVyICYgKG51bWJlciAtIDEpKTsgfQoKaW50IG1haW4oKSB7CglzdGQ6OmNvdXQgPDwgaXNQb3dlck9mMigxMDI0KSA8PCBzdGQ6OmVuZGw7CglzdGQ6OmNvdXQgPDwgaXNQb3dlck9mMigxMDIzKSA8PCBzdGQ6OmVuZGw7CglzdGQ6OmNvdXQgPDwgaXNQb3dlck9mMigwKSA8PCBzdGQ6OmVuZGw7CglyZXR1cm4gMDsKfQ==