#include using namespace std; typedef long long ll; typedef pair pint; typedef vector vi; #define all(v) v.begin(), v.end() #define rep(i,s,n) for(int i=(int)(s);i<(int)(n);i++) #define lep(i,s,n) for(ll i=(ll)(s);i<(ll)(n);i++) #define vep(v) for(auto&& x : v) using Graph = vector>; int main(){ ll a, b; cin >> a >> b; cout << (a|b)+(a&b) << endl; }