#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long int> ggc;
  vector<vector<long long int>> v;
  for (int i = 0; i < n; i++) {
    vector<long long int> vv(n);
    for (int j = 0; j < n; j++) cin >> vv[j];
    v.push_back(vv);
  }
  long long int save;
  save = (v[0][1] * v[0][2]) / v[1][2];
  save = sqrt(save);
  cout << save << " ";
  for (int i = 1; i < v[0].size(); i++) {
    cout << v[0][i] / save << " ";
  }
  return 0;
}
