#include using namespace std; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); int A, B; cin >> A >> B; cout << (A | B) + (A & B) << endl; return 0; }