#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a;
b=0;
while(a>0)
{
if(a%2==1)
b++;
a/=10;
}
cout<<b;
return 0;
}