main(a,b)char**b;{int z=(~a&1)*a+!((a-1)&2);while(a--)z^=atol(*++b);return z;}