#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007ll;
double dp[1 << 20];
double p[20][20];
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  cin >> n;
  for (long long i = 0; i <= n - 1; i++)
    for (long long j = 0; j <= n - 1; j++) cin >> p[i][j];
  long long start = (1LL << n) - 1;
  dp[start] = 1.0;
  for (long long mask = start; mask >= 0; mask--) {
    long long x = __builtin_popcountll(mask);
    vector<long long> A;
    for (long long i = 0; i <= n - 1; i++) {
      if (mask & (1LL << i)) A.push_back(i);
    }
    if (x < 2) continue;
    for (long long i = 0; i <= x - 1; i++)
      for (long long j = 0; j <= x - 1; j++)
        dp[mask - (1LL << A[j])] +=
            (1.0 * dp[mask] * 2 * p[A[i]][A[j]] / (1.0 * (x * x - x)));
  }
  for (long long i = 0; i <= n - 1; i++)
    cout << setprecision(10) << dp[1LL << i] << " ";
  return 0;
}
