Problem Statement :
Given a positive integer N, print count of set bits in it.
Input Format:
The input contains one line containing the number ‘N’.
Output Format:
The output consists of one line consisting of the number of 1s in the binary representation of ‘N’.
Given:
8
Output:
2
Explanation of Test case:
Binary representation of 6 is '110'
So the count of the set bit is 2.
Approach:
Convert the N into binary representation and count the 1's.