#include <bits/stdc++.h>
using namespace std;
int n;
double a[25][25], f[1500005];
inline int read() {
  char ch = getchar();
  int x = 0, f = 1;
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9')
    x = (x << 1) + (x << 3) + (ch ^ 48), ch = getchar();
  return x * f;
}
int main() {
  n = read();
  for (register int i = 0; i < n; ++i)
    for (register int j = 0; j < n; ++j) cin >> a[i][j];
  f[(1 << n) - 1] = 1;
  for (register int i = (1 << n) - 1; i; --i) {
    int t = 0, x = i;
    while (x) t += (x & 1), x >>= 1;
    t = t * (t + 1) / 2;
    for (register int j = 0; j < n; ++j)
      if (!(i & (1 << j)))
        for (register int k = 0; k < n; ++k)
          if (i & (1 << k)) f[i] += f[i | (1 << j)] * a[k][j] / t;
  }
  for (register int i = 0; i < n; ++i) printf("%.6lf ", f[1 << i]);
  return 0;
}
