Test of evenness: even

### 5.5.11 Test of evenness: even

The even command tests an integer to see if it is even. (A Gaussian integer a+ib is even exactly when a and b are both even and odd otherwise.)

- even takes one argument:
  n, an integer.
- even(n) returns 1 if n is even and returns 0 if n is odd.

#### Examples

- Input:
  even(148)
  Output:

  1

- Input:
  even(149)
  Output:

  0

- Input:
  even(2+4*i)
  Output:

  1