eolymp
bolt
Try our new interface for solving problems
Problems

Number of even elements in a two-dimensional array

Number of even elements in a two-dimensional array

Time limit 1 second
Memory limit 128 MiB

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

Input data

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 data

Print the number of even elements in the array.

Examples

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 Джерело Серія задач "Абетка програмування"