#include <iostream> using namespace std; long long n, nrw=0; int main() { cin>>n; while(n!=0) { if(n%2==0) nrw++; n/=2; } cout<<nrw; return 0; }