#include <bits/stdc++.h>
using namespace std;
double a[20][20];
double dp[1 << 20];
int main() {
  int n;
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cin >> n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) cin >> a[i][j];
  }
  dp[(1 << n) - 1] = 1.0;
  for (int i = (1 << n) - 2; i > 0; i--) {
    int p = __builtin_popcount(i);
    p = (p + 1) * p / 2;
    for (int j = 0; j < n; j++) {
      if ((1 << j) & i) {
        for (int k = 0; k < n; k++) {
          if (!((1 << k) & i)) {
            dp[i] += dp[i | (1 << k)] * a[j + 1][k + 1];
          }
        }
      }
    }
    dp[i] /= p;
  }
  for (int i = 0; i < n; i++) {
    cout << fixed << setprecision(10) << dp[1 << (i)] << ' ';
  }
  return 0;
}
