#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  long long int i, j;
  long long int a[n + 1][n + 1];
  for (i = 1; i <= n; i = i + 1) {
    for (j = 1; j <= n; j = j + 1) {
      cin >> a[i][j];
    }
  }
  long long int x[n + 1];
  for (i = 2; i < n; i = i + 1) {
    x[i] = (a[1][i] * a[i][i + 1]) / a[1][i + 1];
    x[i] = sqrt(x[i]);
  }
  x[1] = (a[1][2] / x[2]);
  x[n] = (a[1][n] / x[1]);
  for (i = 1; i <= n; i = i + 1) {
    cout << x[i] << " ";
  }
  cout << endl;
}
