Sum of positive elements in odd rows#9573

Sum of positive elements in odd rows

1 second
64 megabytes
Very easy

Given a two-dimensional array with dimensions n \times m, your task is to calculate the sum of all positive elements located in the odd-numbered rows of this array.

Input

The first line of input consists of two integers, and (1 \leq n, m \leq 100), representing the number of rows and columns, respectively. Following this, there are lines, each containing integers, which represent the elements of the array. Note that row numbering starts at .

Output

Output a single integer, which is the sum of the positive elements in the odd-numbered rows.

Examples

Example 1

Loading
Loading