require "big_int" puts BigInt.new(gets.not_nil!).popcount