long n;main(s){for(scanf("%ld",&n);n&=n-1;)s++;n=!printf("%d",s);}