Problems

# Number of even elements in a two-dimensional array

A two-dimensional array of size n * m is given. Find the number of even elements in it.

#### Input

The first line contains two numbers n and m - the number of rows and the number of columns, respectively. Then given n lines with m numbers - the elements of the array.

#### Output

Print the number of even elements in the array.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4 5
1 3 2 4 5
4 2 7 6 5
9 2 3 5 1
7 8 1 7 2

Output example #1
8
Author Жуковський Сергій Станіславович
Source Джерело Серія задач "Абетка програмування"