//PascalABC.Net 3.2
begin
var count:=0; var n:=readinteger('n =');
while n mod 10 = 0 do
begin
inc (count);
n:=n div 10;
end;
write (count);
end.
//MV C++ 10
#include
using namespace std;
int main()
{
int n, count=0;
cin >>n;
while (n%10==0) {count++; n/=10;}
cout<<count;<br>return 0;
}