#include <bits/stdc++.h>
using namespace std;
double live[1 << 18];
int main() {
  int n;
  double a[20][20];
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      scanf("%lf", &a[i][j]);
    }
  }
  double coef[20];
  for (int i = 2; i <= n; i++) coef[i] = 2.0 / ((double)i * (i - 1));
  live[(1 << n) - 1] = 1.0;
  for (int st = 0; st < (1 << n) - 1; st++) live[st] = 0.0;
  for (int st = (1 << n) - 1; st > 0; st--) {
    if (live[st] == 0.0) continue;
    for (int i = 0; i < n; i++) {
      if (!(st & (1 << i))) continue;
      for (int j = i + 1; j < n; j++) {
        if (!(st & (1 << j))) continue;
        int c = 0;
        for (int k = 0; k < n; k++)
          if (st & (1 << k)) c++;
        live[st & (~(1 << j))] += live[st] * coef[c] * a[i][j];
        live[st & (~(1 << i))] += live[st] * coef[c] * a[j][i];
      }
    }
  }
  for (int i = 0; i < n - 1; i++) printf("%lf ", live[1 << i]);
  printf("%lf", live[1 << (n - 1)]);
  return 0;
}
