#include int main() { int x, y; scanf("%x %x", &x, &y); return x^y; }