#include using namespace std; using ll = long long; using pii = pair; using pll = pair; using vi = vector; using vvi = vector; using vl = vector; using vvl = vector; using vb = vector; using vvb = vector; #define LLINF 9223372036854775807 #define MOD ll(998244353) #define all(x) (x).begin(),(x).end() #define dbg(x) cerr<<#x<<": "<> a >> b; ll ta = a, tb = b; while(1){ ta /= 2; tb /= 2; if(ta == 0 && tb == 0){ f1(a, b); return 0; }else if(ta == 0 && tb > 0){ cout << a << endl; return 0; }else if(ta > 0 && tb == 0){ cout << b << endl; return 0; } } return 0; }