#include <stdio.h>
#include <string.h>
void f(char*s) {
if (*(++s)=='1')
{
while(--n)
} else {
while(*(++s)!='1') {
--n;
}
while(--n)
}
}
int main()
{
f("111");
f("1110");
f("101100");
f("1000000000000000000000000000000000010100");
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4Kdm9pZCBmKGNoYXIqcykgewogICAgaW50IG49c3RybGVuKHMpLTI7CiAgICBwcmludGYoIlxuaW5wdXQgID0gJXNcbiIsIHMpOwogICAgcHJpbnRmKCJvdXRwdXQgPSAiKTsKICAgIGlmICgqKCsrcyk9PScxJykKICAgIHsKICAgICAgICBwcmludGYoIjEwIik7CiAgICAgICAgd2hpbGUoLS1uKQogICAgICAgICAgICBwdXRjaGFyKCcwJyk7CiAgICAgICAgcHJpbnRmKCIxMVxuIik7CiAgICB9IGVsc2UgewogICAgICAgIHB1dGNoYXIoJzEnKTsKICAgICAgICB3aGlsZSgqKCsrcykhPScxJykgewogICAgICAgICAgICBwdXRjaGFyKCcwJyk7CiAgICAgICAgICAgIC0tbjsKICAgICAgICB9CiAgICAgICAgcHV0Y2hhcignMScpOwogICAgICAgIHdoaWxlKC0tbikKICAgICAgICAgICAgcHV0Y2hhcignMCcpOwogICAgICAgIHByaW50ZigiMVxuIik7CiAgICB9Cgp9CmludCBtYWluKCkKewogICAgZigiMTExIik7CiAgICBmKCIxMTEwIik7CiAgICBmKCIxMDExMDAiKTsKICAgIGYoIjEwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMTAxMDAiKTsKICAgIHJldHVybiAwOwp9Cg==