#include #define rep(i, n) for (Int i = 0; i < (int)(n); i++) #define rrep(i,n) for(Int i=(n)-1;i>=0;i--) #define FOR(i,a,b) for(Int i=a;i<=Int(b);i++) #define __MAGIC__ ios::sync_with_stdio(false);cin.tie(nullptr); //#include //using namespace atcoder; typedef long long Int; const long long INF = 1ll << 60; using namespace std; using p = pair; using Graph = vector>; const int dx[4] = {1, 0, -1, 0}; const int dy[4] = {0, 1, 0, -1}; int main(){ __MAGIC__ int a, b; cin >> a >> b; int ans = 0; ans = (a | b) + (a & b); cout << ans << endl; // cout << ans << endl; // cout << (ans ? "Yes" : "No") << endl; return 0; }