#include using namespace std; int main() { int n; cin>>n; int c = 0; for(;n;c++) n&=n-1; cout<