There is a grid of . And write the integers in all the grids (each number can be written only once) in the upper left grid of (♣). About the 4 rows, write the sum of four numbers that are written in each row at the right end of each row. Similarly, about the 4 columns, write the sum of four numbers that are written in each column at the lower end of each column. And nothing is written in the lower right grid. Find the maximum integer which satisfies the following condition.
Conditions: About step (♣), there exists a way of writing the numbers such that you can choose two numbers which hold from the right end column and also from the lower end row.