Sumeet has an N*N table, where a non-negative integer is written at each position (i,j) of the table.He wants to place J tiles on top of the table that will cover the fields that are too large. But, there are certain conditions:
It will always be possible to place the J tiles without violating any of the above conditions.
Sumeet wants to determine the minimal sum of visible positions. As you are a great programmer, he asks you to help him out.
The first line of input contains two integers N dimension of the table and J, the number of tiles. Each of the following N lines contains N integers describing the table.
Output the minimal sum of visible fields after covering the table with tiles.
Note : There is no partial score for this problem
Cover the cell (2,1) and (2,2) [ 1 - based indexing ]