Even Parity Check
Each 8-bit frame was sent with even parity: the number of 1s, including the parity bit, must be even. For every received frame print OK or ERROR.
Input
, then frames, each a string of 8 bits.
Output
One result per frame.
Constraints
Sample 1
Input
3 10110100 11111111 00000001
Output
OK OK ERROR