import java.util.*; import java.math.BigInteger; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); BigInteger b = new BigInteger(s); System.out.println(b.bitCount()); } }