#include int main() { int A, B, C; if (scanf("%d %d", &A, &C) != 2) { return -1; } B = C ^ A; printf("%d", B); return 0; }