/** * author: shu8Cream * created: 19.03.2021 23:14:20 **/ #include using namespace std; #define rep(i,n) for (int i=0; i<(n); i++) #define all(x) (x).begin(), (x).end() using ll = long long; using P = pair; using vi = vector; using vvi = vector; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int a,b; cin >> a >> b; cout << (a|b)+(a&b) << endl; }