#include <bits/stdc++.h>
using namespace std;
int n;
double a[20][20], f[1 << 19];
int getnum(int s) {
  int ans = 0;
  for (int i = 17; i >= 0; i--) {
    if ((1 << i) <= s) {
      s -= (1 << i);
      ans++;
    }
  }
  return ans;
}
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) cin >> a[i][j];
  f[(1 << n) - 1] = 1;
  for (int i = (1 << n) - 1; i > 0; i--) {
    if (f[i])
      for (int j = 1; j <= n; j++)
        if (i & (1 << (j - 1)))
          for (int k = 1; k <= n; k++)
            if (k != j && (i & (1 << (k - 1)))) {
              int cnt = getnum(i);
              if (cnt > 0)
                f[i ^ (1 << (k - 1))] += f[i] * 2 * a[j][k] / cnt / (cnt - 1);
            }
  }
  for (int i = 1; i <= n; i++) printf("%.6lf ", f[1 << (i - 1)]);
  return 0;
}
