1. Pepcoder is feeling confident after solving many problems on Bit Manipulation.
2. So, his teacher ask him to find out the count of positive integers strictly less than N, having same
number of set bits as that of N.
3. Let us see that if pepcoder can solve it or not. Input Format
A number N
Output Format
Check the sample ouput and question video.
Constraints
1 <= N <= 10^12
Notice
Try First, Check Solution later
1. You should first read the question and watch the question video.2. Think of a solution approach, then try and submit the question on editor tab.3. We strongly advise you to watch the solution video for prescribed approach.Example
Input
1024
Output
10