#include int main() { int a, b; std::cin >> a >> b; int ans = (a | b) + (a & b); std::cout << ans << std::endl; }