Turtle Knight#4053

Turtle Knight

1 second
128 megabytes
Easy

The chessboard of size n \times m is given. Each its cell contains a positive integer. The turtle sits in the upper left corner. The turtle can make knight moves down and right. That is, it can move either one step to the right and two steps down, or one step down and two steps to the right. Help the turtle to reach the lower right corner of the board, collecting the maximum sum of numbers. The turtle collects only those numbers, where it finishes its moves, but not all where it creeps.

Input

First line contains two integers and (1 \le n, m \le 100) giving the size of the board. Then given numbers written on the board - rows each containing positive integers, not greater than .

Output

Print the desired maximum sum, or if the turtle can't reach the lower right corner.

Examples

Example 1

Loading
Loading