#include <cmath>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <algorithm>
#include <queue>
#define rep(i, l, r) for(int i = l; i <= r; i++)
#define down(i, l, r) for(int i = l; i >= r; i--)
#define MS 19
#define MAX 1037471823
#define Q 103
using namespace std;
int n;
double b[MS][MS], k[MS][MS], a, x[MS];
int main()
{
scanf("%d", &n);
rep(i, 1, n+1) rep(j, 1, n) scanf("%lf", &b[i][j]);
rep(i, 1, n) rep(j, 1, n) k[i][j] = b[i][j] - b[i+1][j];
rep(i, 1, n) rep(j, 1, n) k[i][0] += b[i][j] * b[i][j] - b[i+1][j] * b[i+1][j];
rep(i, 1, n) k[i][0] /= 2;
rep(i, 1, n)
{
rep(j, i+1, n)
{
a = k[j][i] / k[i][i];
rep(o, 0, n) k[j][o] -= k[i][o] * a;
}
}
down(i, n, 1)
{
x[i] = k[i][0] / k[i][i];
rep(j, 1, i-1) k[j][0] -= k[j][i] * x[i];
}
rep(i, 1, n-1) printf("%.3f ", x[i]); printf("%.3f", x[n]);
return 0;
}
I2luY2x1ZGUgPGNtYXRoPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPGNzdGRpbz4KI2luY2x1ZGUgPGNzdGRsaWI+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGZzdHJlYW0+CiNpbmNsdWRlIDxhbGdvcml0aG0+CiNpbmNsdWRlIDxxdWV1ZT4KCiNkZWZpbmUgcmVwKGksIGwsIHIpIGZvcihpbnQgaSA9IGw7IGkgPD0gcjsgaSsrKQojZGVmaW5lIGRvd24oaSwgbCwgcikgZm9yKGludCBpID0gbDsgaSA+PSByOyBpLS0pCiNkZWZpbmUgTVMgMTkKI2RlZmluZSBNQVggMTAzNzQ3MTgyMwojZGVmaW5lIFEgMTAzCgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG47CmRvdWJsZSBiW01TXVtNU10sIGtbTVNdW01TXSwgYSwgeFtNU107Cgpp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