#include using namespace std; #define ll long long #define rep(i, n) for (int i = 0; i < (n); i++) #define P pair int main() { int a, b; cin >> a >> b; cout << (a|b) + (a&b) << endl; }