#include int main(void){ int a; int b; int c; scanf("%d %d",&a,&c); b = a ^ c; printf("%d",b); return 0; }