#include <bits/stdc++.h>
using namespace std;
int n;
double p[22][22];
double dp[262244];
int memo(int set, int id) { cout << set << " " << id << endl; }
int main() {
  cin >> n;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> p[i][j];
  int a[22], sz;
  dp[(1 << n) - 1] = 1;
  for (int i = (1 << n) - 1; i; i--) {
    sz = 0;
    for (int j = 0; j < n; j++)
      if (i & (1 << j)) a[sz++] = j;
    for (int j = 0; j < sz; j++)
      for (int k = 0; k < sz; k++)
        dp[i & ~(1 << a[k])] += dp[i] * p[a[j]][a[k]] * 2 / (sz * sz - sz);
  }
  for (int i = 0; i < n; i++) printf("%.6f ", dp[(1 << i)]);
  cout << endl;
  return 0;
}
