#include <bits/stdc++.h>
using namespace std;
int n;
double a[18][18];
double f[1 << 18];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < n; ++j) scanf("%lf", &a[i][j]);
  f[(1 << n) - 1] = 1.0;
  for (int s = (1 << n) - 1; s; --s)
    if (int c = __builtin_popcount(s); c > 1)
      for (int i = 0; i < n; ++i)
        if (s & (1 << i))
          for (int j = 0; j < n; ++j)
            if (s & (1 << j))
              f[s ^ (1 << j)] += f[s] * a[i][j] / (c * (c - 1) / 2);
  for (int i = 0; i < n; ++i) printf("%.6lf ", f[1 << i]);
  return 0;
}
