#include <stdio.h>
#include <string.h>
int
main()
{
char s[100], *p;
int cnt;
while (fgets(s
, 100, stdin
) != NULL
) { cnt = 0;
while ((p
= strtok(NULL
, " "))) { cnt++;
if (*p != '0')
}
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludAptYWluKCkKewogIGNoYXIgICAgICAgICAgICBzWzEwMF0sICpwOwogIGludCAgICAgICAgICAgICBjbnQ7CgogIHdoaWxlIChmZ2V0cyhzLCAxMDAsIHN0ZGluKSAhPSBOVUxMKSB7CiAgICBzW3N0cmxlbihzKS0xXT0nXDAnOwogICAgY250ID0gMDsKICAgIHAgPSBzdHJ0b2socywgIiAiKTsKICAgIHdoaWxlICgocCA9IHN0cnRvayhOVUxMLCAiICIpKSkgewogICAgICBjbnQrKzsKICAgICAgaWYgKCpwICE9ICcwJykgCiAgICAgICAgcHJpbnRmKCIlZDolcyAiLCBjbnQsIHApOwogICAgfQogICAgcHV0cygiIik7CiAgfQogIHJldHVybiAwOwp9