#include <iostream>
using namespace std;
int n;
int main()
{
int ct=0;
cin>>n;
while(n>0)
{
if((n%10)%2==1) ct++;
n>>1;
}
cout<<ct;
}