Dahno Dahno
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

There are items. Setsuna wants you to divide items into two sets, set and set , and neither set can be empty.

For some mysterious reasons, when item and item are in the same set, they will produce power.

Thus, the total power will be

You should find the possible maximum power.

输入描述:

The first line contains one integers  ().

The -th line of the following n lines contains n integers .

It is guaranteed that  and .

输出描述:

Output the possible maximum power.
示例1

输入

复制
4
0 2 4 8
2 0 16 32
4 16 0 64
8 32 64 0

输出

复制
224