#include int main(void){ int A,B; scanf("%d%d",&A,&B); printf("%d",(A|B)+(A&B)); return 0; }