```
public class Solution {
// you need to treat n as an unsigned value
public int hammingWeight(int n) {
int count = 0;
while(n>0){
if(n%2 == 1) count++;
n/=2;
}
return count;
}
```

}

Input:

2147483648 (10000000000000000000000000000000)

Output:

0

Expected:

1