import java.util.Scanner; /** * @author supermejane * @date 2025/10/11 15:14 * @description BGN80 二进制数1 */ public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); long n = in.nextLong(), result = 0; while (n > 0) { result += n & 1; n = n >> 1; } System.out.println(result); } }