1#include <iostream>
2
3int main(int argc, char **argv) {
4
5 int parity = 0;
6 int x;
7//you can use scanf , printf alternatively for speed
8 std::ios::sync_with_stdio(false);// this increases the speed of i/o
9
10 while (std::cin >> x)
11 parity ^= x;
12 std::cout << parity << std::endl;
13
14 return 0;
15}