#include int main() { int A, B; std::cin >> A >> B; std::cout << (A | B) + (A & B) << std::endl; return 0; }