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