#include <bits/stdc++.h>
const int Mod = (int)1e9 + 7;
const int MX = 1073741822;
const long long MXLL = 4611686018427387903;
const int Sz = 1110111;
using namespace std;
inline void Read_rap() {
  ios_base ::sync_with_stdio(0);
  cin.tie(0);
}
double dp[1 << 18], cnt[1 << 18][18];
;
int n;
double a[18][18];
inline double P(double n) { return 1.0 / (n * (n - 1) / 2.0); }
int main() {
  Read_rap();
  cin >> n;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> a[i][j];
  dp[0] = 1;
  for (int mask = 0; mask < (1 << n); mask++) {
    for (int i = 0; i < n; i++) {
      if ((mask & (1 << i)) == 0)
        for (int j = 0; j < n; j++) {
          if ((mask & (1 << j)) == 0)
            dp[mask | (1 << j)] +=
                P(n - __builtin_popcount(mask)) * dp[mask] * a[i][j];
        }
    }
  }
  for (int i = 0; i < n; i++) {
    cout << dp[((1 << n) - 1) ^ (1 << i)] << ' ';
  }
  return 0;
}
