/*
 ___   _   _    ___  __   ___ _  _     __   ____ ___ _  _   _
|__   /_\  |\ |  |  |  | |__  |__|     |_|  |__   |  |__|  /_\
___| /   \ | \|  |  |__| ___| |  |     |__| |___  |  |  | /   \

*/
#include <stdio.h>
int main()
{
  int a, b;
  scanf("%d%d", &a, &b);
  printf("%d", (a | b) + (a & b));
  return 0;
}