/** * author: shu8Cream * created: 19.03.2021 23:14:20 **/ #include <bits/stdc++.h> 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<int,int>; using vi = vector<int>; using vvi = vector<vi>; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int a,b; cin >> a >> b; cout << (a|b)+(a&b) << endl; }