import java.math.*; import java.util.Scanner; public class Main { public static void main(String[] args) { // create 2 BigInteger objects BigInteger bi1; Scanner scan = new Scanner(System.in); bi1 = new BigInteger(scan.next()); int i1 = bi1.bitCount(); String str1 = "" +i1; System.out.println( str1 ); } }