#include <bits/stdc++.h>
using namespace std;
int n;
double T[19][19];
double res[271001][19];
int main() {
  scanf("%d", &n);
  for (int i = 0; i < (n); i++)
    for (int j = 0; j < (n); j++) scanf("%lf", &T[i][j]);
  int pot = 1, nr = 0;
  for (int i = (1); i <= ((1 << n) - 1); i++) {
    if (i == pot) {
      res[i][nr] = 1.0;
      pot *= 2, nr++;
      continue;
    }
    int ile = 0;
    for (int j = 0; j < (n); j++)
      if (i & (1 << j))
        for (int k = (j + 1); k <= (n - 1); k++)
          if (i & (1 << k)) {
            ile++;
            for (int l = 0; l < (n); l++)
              res[i][l] += T[j][k] * res[i ^ (1 << k)][l] +
                           (1.0 - T[j][k]) * res[i ^ (1 << j)][l];
          }
    for (int l = 0; l < (n); l++) res[i][l] /= (double)ile;
  }
  for (int i = 0; i < (n); i++) printf("%.6lf ", res[(1 << n) - 1][i]);
  printf("\n");
  return 0;
}
