#include<iostream>
using namespace std;
int main()
{
int a;
cin>>a;
int s = 0;
for(int i=a;i>0;i)
{
if(i%2==0)
s++;
i/=2;
}
cout<<s;
return 0;
}
#include<iostream>
using namespace std;
int main()
{
int n;
int h = 100;
int s = 100;
for(n = 2; n <= 10; n++)
{
h /= 2;
s += 2 * h;
}
cout<<n;
return 0;
}
#include <stdio.h>
int main()
{
int n;
double h = 100, s = 100;
for(n = 2; n <= 10; n++)
{
h /= 2;
s += 2 * h;
}