#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n, i, j, k, l, m, t, sum, sum1, flag, max1, min1, tmp;
  cin >> n;
  long long a[n + 1][n + 1];
  for (i = 1; i <= n; i++) {
    for (j = 1; j <= n; j++) {
      cin >> a[i][j];
    }
  }
  long long b[n + 1];
  for (i = 1; i <= n; i++) {
    if (i <= n / 2) {
      k = (a[i][i + 1] * a[i][i + 2]) / a[i + 1][i + 2];
      if (k != 0) {
        b[i] = sqrt(k);
      } else {
        k = (a[i][i - 1] * a[i][i + 1]) / a[i - 1][i + 1];
        b[i] = sqrt(k);
      }
    } else {
      k = (a[i][i - 1] * a[i][i - 2]) / a[i - 1][i - 2];
      if (k != 0 and i != 2) {
        b[i] = sqrt(k);
      } else {
        k = (a[i][i - 1] * a[i][i + 1]) / a[i - 1][i + 1];
        b[i] = sqrt(k);
      }
    }
  }
  for (i = 1; i <= n; i++) {
    cout << b[i] << " ";
  }
}
