#include main(){ unsigned long int A,B,C; scanf("%lu %lu", &A, &C); B = A ^ C; printf("%lu\n", B); return 0; }