#include <bits/stdc++.h>
using namespace std;
const long long N = 1e3;
const long long mod = 1e7 + 7;
inline long long read() {
  register long long s = 0;
  register bool neg = 0;
  register char c = getchar();
  for (; c < '0' || c > '9'; c = getchar()) neg |= (c == '-');
  for (; c >= '0' && c <= '9'; s = s * 10 + (c ^ 48), c = getchar())
    ;
  return (neg ? -s : s);
}
long long a;
double s[19][19], dp[1 << 18];
inline long long sum(long long n) {
  long long res = 0;
  while (n) {
    res++;
    n ^= n & -n;
  }
  return res;
}
signed main() {
  a = read();
  for (long long i = 1; i <= a; i++)
    for (long long j = 1; j <= a; j++) scanf("%lf", &s[i][j]);
  long long mx = (1 << a) - 1;
  dp[mx] = 1;
  for (long long p = mx; p >= 1; p--) {
    long long tmp = sum(p);
    for (long long i = 1; i <= a; i++)
      if (p & (1 << (i - 1))) {
        for (long long j = 1; j <= a; j++)
          if (i != j && (p & (1 << (j - 1)))) {
            dp[p ^ (1 << (j - 1))] += dp[p] * 2.0 * s[i][j] / tmp / (tmp - 1);
          }
      }
  }
  for (long long i = 1; i <= a; i++) printf("%.6lf ", dp[1 << (i - 1)]);
  return 0;
}
