import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.Scanner;
class Main
{
{
int k=0, n;
Scanner in
= new Scanner
(System.
in); n = in.nextInt();
while (n > 0){
k += (n % 2);
n = n / 2;
}
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CmltcG9ydCBqYXZhLnV0aWwuU2Nhbm5lcjsKCmNsYXNzIE1haW4KewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IGs9MCwgbjsKCQlTY2FubmVyIGluID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQluID0gaW4ubmV4dEludCgpOwoJCXdoaWxlIChuID4gMCl7ICAgCgkJCWsgKz0gKG4gJSAyKTsKCQkJbiA9IG4gLyAyOwoJCX0KCQlTeXN0ZW0ub3V0LnByaW50KGspOwoJfQp9