#include int main(void){ unsigned long long a, b, c; scanf("%lld%lld", &a, &c); b = a ^ c; printf("%lld\n", b); }