import java.math.BigInteger; import java.util.Scanner; class BitCount { static Scanner console = new Scanner(System.in); public static void main(String[] args) { long input = 0L; BigInteger bigInteger; input = console.nextLong(); bigInteger = new BigInteger(String.valueOf(Long.bitCount(input))); System.out.println(bigInteger); } }