#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  vector<vector<double>> a(n, vector<double>(n));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) cin >> a[i][j];
  }
  cout << fixed << setprecision(10);
  int N = 1 << n;
  vector<double> dp(N);
  dp[N - 1] = 1.0;
  for (int mask = N - 1; mask > 0; mask--) {
    int num_fishes = __builtin_popcount(mask);
    int size_of_sample_space = num_fishes * (num_fishes - 1) / 2;
    vector<int> fish;
    for (int i = 0; i < n; i++) {
      if (mask & (1 << i)) fish.push_back(i);
    }
    for (int i = 0; i <= num_fishes - 2; i++) {
      for (int j = i + 1; j < num_fishes; j++) {
        dp[mask ^ (1 << fish[j])] +=
            dp[mask] * a[fish[i]][fish[j]] / double(size_of_sample_space);
        dp[mask ^ (1 << fish[i])] +=
            dp[mask] * a[fish[j]][fish[i]] / double(size_of_sample_space);
      }
    }
  }
  for (int i = 0; i < n; i++) cout << dp[1 << i] << ' ';
  return 0;
}
