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