/** * author o2o9 * date 2021-03-24 */ #include using namespace std; #define ll long long int main() { ios::sync_with_stdio(false); cin.tie(0); int a,b; cin >> a >> b; int ans = a | b; int cnt = a & b; cout << ans + cnt << '\n'; return 0; }