#include #define rep(i, n) for (int i = 0; i < (int)(n); i++) using namespace std; typedef long long ll; int main() { int A, B; cin >> A >> B; cout << (A | B) + (A & B) << "\n"; }