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