let str; while(str = readline()){ let two = parseInt(str).toString(2); let arr = two.split(''); let num = 0; arr.forEach((v)=>{ if(v == '1'){ num++; } }) console.log(num) }
let str; while(str = readline()){ let two = parseInt(str).toString(2); let arr = two.split(''); let num = 0; arr.forEach((v)=>{ if(v == '1'){ num++; } }) console.log(num) }