#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.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];
  vector<double> dp(1 << n, 0.0);
  dp[(1 << n) - 1] = 1.0;
  for (int mask = (1 << n) - 1; mask >= 0; mask--) {
    int cnt = __builtin_popcount(mask);
    cnt = cnt * (cnt - 1) / 2;
    for (int i = 0; i < n; i++) {
      for (int j = 0; j < n; j++) {
        if (!(mask & (1 << i)) || !(mask & (1 << j)) || i == j) continue;
        dp[mask ^ (1 << j)] += dp[mask] * a[i][j] / (double)cnt;
      }
    }
  }
  for (int i = 0; i < n; i++)
    cout << fixed << setprecision(10) << dp[1 << i] << ' ';
  cout << '\n';
  return 0;
}
