#include<iostream> using namespace std; int main() {int x,y,a,b,sa=0,sb=0; cin>>a>>b; x=a;y=b; while(a>0) { sa=sa+a%2; a=a/2; } while(b>0) { sb=sb+b%2; b=b/2; } if(sa>sb) cout<<x; else cout<<y; system("pause"); return 0; }