#include using namespace std; typedef long long ll; #define _FastIO ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0) #define pb emplace_back #define pii pair #define F first #define S second const int mod = 1000000007; const int MAXX = 2e7 + 5; const int N = 2e7; int a , b; int main() { _FastIO; cin >> a >> b; cout << (a | b) + (a & b) << endl; return 0; }