#include <bits/stdc++.h>
using namespace std;
double p[20][20];
double f[(1 << 18) + 1];
int main() {
  int fish_num;
  while (scanf("%d", &fish_num) != EOF) {
    memset(f, 0, sizeof(f));
    for (int i = 0; i < fish_num; i++) {
      for (int j = 0; j < fish_num; j++) {
        scanf("%lf", &p[i][j]);
      }
    }
    f[0] = 1;
    for (int s = 0; s < (1 << fish_num); s++) {
      int sz = fish_num;
      if (f[s] == 0) continue;
      for (int i = 0; i < fish_num; i++)
        if ((s >> i) & 1) sz--;
      sz = (sz * (sz - 1));
      for (int i = 0; i < fish_num; i++) {
        if (!(s & (1 << i))) {
          for (int j = 0; j < fish_num; j++) {
            if (!(s & (1 << j))) {
              if (i != j) f[s | (1 << j)] += f[s] / sz * p[i][j] * 2;
            }
          }
        }
      }
    }
    for (int i = 0; i < fish_num; i++) {
      if (i != 0) putchar(' ');
      printf("%.8lf ", f[(1 << fish_num) - 1 - (1 << i)]);
    }
    printf("\n");
  }
  return 0;
}
