#include <bits/stdc++.h>
using namespace std;
int n;
double p[20][20];
double d[1 << 20];
double go(int msk) {
  if (d[msk] == -1) {
    d[msk] = 0;
    int c = __builtin_popcount(msk);
    for (int i = 0; i < n; ++i) {
      if ((msk & (1 << i)) == 0) {
        for (int j = 0; j < n; ++j) {
          if (msk & (1 << j)) {
            d[msk] += 2.0 * p[j][i] * go(msk | (1 << i)) / (c * (c + 1));
          }
        }
      }
    }
  }
  return d[msk];
}
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      cin >> p[i][j];
    }
  }
  for (int i = 0; i < (1 << n); ++i) {
    d[i] = -1;
  }
  d[(1 << n) - 1] = 1;
  cout.precision(7);
  for (int i = 0; i < n; ++i) {
    cout << fixed << go((1 << i)) << ' ';
  }
  cout << endl;
  return 0;
}
