System.in.eachLine{println((it=~/\d+/)*.toLong().sum(0L.&bitCount))}