EasyRating 1000
Bacteria in the Box
Each morning you may add any number of bacteria to a box; each night every bacterium splits in two. To see exactly x bacteria at some moment, what is the fewest bacteria you must add in total?
Input
One integer x (1 ≤ x ≤ 10⁹).
Output
One integer.
Sample 1
Input
5
Output
2
Sample 2
Input
8
Output
1
Output appears here