#includeusing namespace std; int a[1000]; int onecheck(int a) { int j,i=~0,count=0; i=a&i; for(j=0;j<30;j++) { if(i%2==1)count++; i/=2; } return count; } int main() { int i,j; while(cin>>i&&i!=0) { for(j=i+1;;j++) { if(onecheck(i)==onecheck(j)) { cout<



