#include <iostream>
#include <cmath>
using namespace std;
const int TEN = 10;
int maxCons0(long long no) {
int cons = 0, firstattempt = 0, rez = 0;
while (no > 0) {
if (no % TEN == 0) {
++cons;
} else {
if (cons > rez) {
rez = cons;
}
cons = 0;
}
no /= TEN;
}
if (cons > rez) {
rez = cons;
}
return rez;
}
int main() {
long long no = 10e18;
//cin >> no;
cout << maxCons0(no);
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7Cgpjb25zdCBpbnQgVEVOID0gMTA7CgppbnQgbWF4Q29uczAobG9uZyBsb25nIG5vKSB7CglpbnQgY29ucyA9IDAsIGZpcnN0YXR0ZW1wdCA9IDAsIHJleiA9IDA7Cgl3aGlsZSAobm8gPiAwKSB7CgkJaWYgKG5vICUgVEVOID09IDApIHsKCQkJKytjb25zOwoJCX0gZWxzZSB7CgkJCWlmIChjb25zID4gcmV6KSB7CgkJCQlyZXogPSBjb25zOwoJCQl9CgkJCWNvbnMgPSAwOwoJCX0KCQlubyAvPSBURU47Cgl9CglpZiAoY29ucyA+IHJleikgewoJCXJleiA9IGNvbnM7Cgl9CglyZXR1cm4gcmV6Owp9CgppbnQgbWFpbigpIHsKCWxvbmcgbG9uZyBubyA9IDEwZTE4OwoJLy9jaW4gPj4gbm87Cgljb3V0IDw8IG1heENvbnMwKG5vKTsKCXJldHVybiAwOwp9