#include <bits/stdc++.h>
double eps = 1e-9;
using namespace std;
double dp[1 << 20];
int main() {
  std::ios::sync_with_stdio(false);
  int n;
  cin >> n;
  double mat[n][n];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> mat[i][j];
    }
  }
  dp[0] = 1;
  for (int i = 0; i < (1 << n); i++) {
    for (int j = 0; j < n; j++) {
      if ((i & (1 << j)) == 0)
        for (int k = 0; k < n; k++) {
          if (j == k) {
            continue;
          }
          if ((i & (1 << k)) == 0) {
            int x = __builtin_popcount(i);
            x = n - x;
            double prob = x * (x - 1) / 2;
            prob = 1 / prob;
            dp[i | (1 << k)] += dp[i] * (prob)*mat[j][k];
          }
        }
    }
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(12) << dp[(1 << n) - 1 - (1 << i)] << " ";
  }
  return 0;
}
