#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int n;
cin >> n;
int A[n][n];
for (int i=0;i<n;i++) //ввод матрицы
{
for(int j=0;j<n;j++)
{
cin >> A[i][j];
}
}
int b[n];
for (int i=0;i<n;i++)
{
b[i]=0;
for(int j=0;j<n;j++)
{
b[i]+=fabs(A[j][i]); //вычисления по формуле
}
}
for (int i=0;i<n;i++)
{
cout << b[i] << " ";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8bWF0aC5oPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgaW50IG47CiAgICBjaW4gPj4gbjsKICAgIGludCBBW25dW25dOwogICAgZm9yIChpbnQgaT0wO2k8bjtpKyspIC8v0LLQstC+0LQg0LzQsNGC0YDQuNGG0YsKICAgIHsKICAgICAgICBmb3IoaW50IGo9MDtqPG47aisrKQogICAgICAgIHsKICAgICAgICAgICAgY2luID4+IEFbaV1bal07CiAgICAgICAgfQogICAgfQogICAgaW50IGJbbl07CiAgICBmb3IgKGludCBpPTA7aTxuO2krKykKICAgIHsKICAgIAliW2ldPTA7CiAgICAgICAgZm9yKGludCBqPTA7ajxuO2orKykKICAgICAgICB7CiAgICAgICAgICAgYltpXSs9ZmFicyhBW2pdW2ldKTsgLy/QstGL0YfQuNGB0LvQtdC90LjRjyDQv9C+INGE0L7RgNC80YPQu9C1CiAgICAgICAgfQogICAgfQogICAgZm9yIChpbnQgaT0wO2k8bjtpKyspCiAgICB7CiAgICAgICAgY291dCA8PCBiW2ldIDw8ICIgIjsKICAgIH0KICAgIHJldHVybiAwOwp9Cg==