You are given a number . In one operation, you can either increase the value of by 1 or decrease the value of by 1.
Determine the minimum number of operations required (possibly zero) to convert number to a number such that binary representation of is a palindrome.
Note: A binary representation is said to be a palindrome if it reads the same from left-right and right-left.
Input format
Output format
For each test case in a new line, print the minimum number of operations required.
Constraints
For first test case
For second test case