#define f(n)__builtin_popcount(n) long n;main(){n=scanf("%lld",&n)>printf("%d",f(n)+f(n>>32));}