#include using namespace std; int main() { int64_t A, B; cin >> A >> B; cout << (A | B) + (A & B) << endl; return 0; }