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