int main(void) { int m, x = 0; while (scanf("%d", &m) == 1) x ^= m; printf("%d\n", x); return 0; }