#include <bits/stdc++.h>
using namespace std;
double a[25][25], dp[(1 << 19)];
int n;
int popcount(int x) {
  int ans = 0;
  while (x) ++ans, x -= x & (-x);
  return ans;
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= n; ++j) scanf("%lf", &a[i][j]);
  dp[(1 << n) - 1] = 1;
  for (int i = (1 << n) - 1; i; --i) {
    int cnt = popcount(i) * (popcount(i) - 1) / 2;
    for (int j = 1; j <= n; ++j) {
      if (i & (1 << (j - 1))) {
        for (int k = 1; k <= n; ++k) {
          if (i & (1 << (k - 1))) {
            dp[i ^ (1 << (k - 1))] += dp[i] * a[j][k] / (double)cnt;
          }
        }
      }
    }
  }
  for (int i = 1; i <= n; ++i) printf("%.6f ", dp[(1 << (i - 1))]);
  return 0;
}
