#include <bits/stdc++.h>
using namespace std;
int n;
double win[100][100];
double live[1 << 18];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < n; ++i)
    for (int j = 0; j < n; ++j) scanf("%lf", &win[i][j]);
  live[(1 << n) - 1] = 1;
  for (int m = (1 << n) - 1; m > 0; m--) {
    int c = 0;
    for (int i = 0; i < n; i++)
      if ((m >> i) & 1) c++;
    for (int i = 0; i < n; i++)
      if ((m >> i) & 1)
        for (int j = 0; j < n; j++)
          if ((m >> j) & 1)
            if (i != j)
              live[m - (1 << i)] += live[m] * win[j][i] * 2 / c / (c - 1);
  }
  for (int i = 0; i < n; ++i) printf("%.6lf ", live[1 << i]);
  return 0;
}
