#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-10;
int n;
double a[20][20];
double f[262144];
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) scanf("%lf", &a[i][j]);
  int full = (1 << n) - 1;
  f[full] = 1.0;
  for (int s = full - 1; s >= 1; s--) {
    int cnt = n;
    for (int j = 1; j <= n; j++) {
      if (s & (1 << j - 1)) continue;
      cnt--;
      for (int i = 1; i <= n; i++) {
        if (!(s & (1 << i - 1))) continue;
        f[s] += a[i][j] * f[s | (1 << j - 1)];
      }
    }
    f[s] /= cnt * (cnt + 1) * 0.5;
  }
  for (int i = 1; i <= n; i++) printf("%.6lf ", f[1 << i - 1]);
  return 0;
}
