#define _GLIBCXX_DEBUG #include using namespace std; int main() { int A, B; cin >> A >> B; long long ans = (A|B) + (A&B); cout << ans << endl; }