#include <stdio.h>
int isBinary(const char *input)
{
for (int i = 0; input[i]; ++i)
if (input[i] != '0' && input[i] != '1')
return 0;
return 1;
}
int main(void) {
if (isBinary("0001110110101"))
else
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CmludCBpc0JpbmFyeShjb25zdCBjaGFyICppbnB1dCkKewogICAgZm9yIChpbnQgaSA9IDA7IGlucHV0W2ldOyArK2kpCiAgICAgICAgaWYgKGlucHV0W2ldICE9ICcwJyAmJiBpbnB1dFtpXSAhPSAnMScpCiAgICAgICAgICAgIHJldHVybiAwOwogICAgcmV0dXJuIDE7Cn0KCgoKaW50IG1haW4odm9pZCkgewoJaWYgKGlzQmluYXJ5KCIwMDAxMTEwMTEwMTAxIikpCiAgICAJcHJpbnRmKCJpcyBiaW5hcnlcbiIpOwoJZWxzZQogICAgCXByaW50ZigiaXMgbm90IGJpbmFyeVxuIik7CglyZXR1cm4gMDsKfQo=