Calculate Bitwise XOR of first ( N - 3 ) elements
VAL ^= i ; } if ( VAL == K ) { document . write ( P + " " + Q + " " + ( P ^ Q ) ) ; } else { document . write ( 0 + " " + P + " " + ( P ^ K ^ VAL ) ) ; } }