print the next smallest and next largest number that have same number of 1s