import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); int temp = num; int count = 0; while(temp > 0){ if(temp % 2 == 1){ count++; } temp /= 2; } System.out.println(count); } }