import java.util.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); while (in.hasNextInt()) { int digit = in.nextInt(); String replaceStr = Integer.toBinaryString(digit).replaceAll("0", ""); System.out.println(replaceStr.length()); } in.close(); } }