#include <stdio.h>
#include <math.h>
int main() {
    long long  m,n;
    scanf("%lld %lld",&m,&n);
   long long x=m^n;
   int count=0;
   while(x>0)
   {
    if(x&1)
    {
        count++;
    }
    x=x>>1;
   }
   printf("%d\n",count);
   return 0;
}