~/algor $ cat problems/while-ikkilik-yozuvdagi-birlar
Ones in binary
Easy
1000 ms
64 MB
32%
A positive integer $n$ is given. Determine how many digits $1$ its binary notation contains (for example, $13 = 1101_{2}$ — three ones).
Input
One positive integer $n$.
Output
One integer — the number of ones.
Note
$1 \le n \le 10^{18}$
Examples
Input #1
13
Output #1
3
Input #2
64
Output #2
1