You are given a 2D matrix named with all slots are integers.
Each element can be represented as: , while indicate the line number of row and column, respectively.
Now, we define a rectangle sum as follows:
And we define mean of rectangle sum as follows:
You're going to calculate the minimum mean of rectangle sum in a 2D matrix.
That is, you need to find:
while indicate the number or row and column of matrix , respectively.

Take sample I/O as example, the matrix should be:
For the minimum choice, you may choose or , while the answer of both of them are .
The first contains 2 integers , indicate the number or row and column of matrix , respectively.
The next lines contain the whole matrix . The -th line contains the -th row of the matrix.
, All elements in will be in range .
The output should contains only the value of minimum mean of rectangle sum.
That is, find out:
and output its value.
Remember the print a '\n' at the end of the output.