#include <bits/stdc++.h>
using namespace std;
int n;
double mat[20][20];
double dp[1 << 20];
bool mark[1 << 20];
double mem(int mask) {
  if (mask == (1 << n) - 1) return 1.;
  if (mark[mask]) return dp[mask];
  int k = 1;
  for (int i = 0; i < n; i++)
    if (mask & (1 << i)) k++;
  mark[mask] = 1;
  dp[mask] = 0;
  for (int i = 0; i < n; i++) {
    if (mask & (1 << i)) continue;
    double sum = 0;
    for (int j = 0; j < n; j++)
      if (mask & (1 << j)) sum += mat[j][i];
    dp[mask] += 2 * sum * mem(mask + (1 << i)) / k / (k - 1);
  }
  return dp[mask];
}
int main() {
  cin >> n;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> mat[i][j];
  for (int i = 0; i < n; i++)
    cout << setprecision(7) << fixed << mem(1 << i) << " ";
  cout << endl;
  return 0;
}
