#include
using namespace std;
int main()
{
int N;
cin >> N;
float** A;
A = (float**) malloc(N * sizeof(float*));
for(int i = 0; i < N; i++)
A[i] = (float*)malloc(N * sizeof(float));
for(int i = 0; i < N; i++)
for(int j = 0; j < N; j++)
cin >> A[i][j];
int I1;
int max = A[0][0];
for(int i = 0; i < N; i++)
{
for(int j = 0; j < N; j++)
{
if(A[i][j]>max)
{
max = A[i][j];
I1 = i;
}
}
}
int sum = 0;
for(int i = 0;i sum+=A[I1][i];
cout<<sum<<endl;<br> system("PAUSE");
return 0;
}