#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 5;
long long in1[N][N];
int main(void) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cin >> in1[i][j];
    }
  }
  long long ans[N];
  fill(ans, ans + N, 0);
  ans[1] = sqrt((in1[1][2] * in1[1][3]) / in1[2][3]);
  for (int i = 2; i <= n; i++) {
    ans[i] = in1[1][i] / ans[1];
  }
  for (int i = 1; i <= n; i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
  return 0;
}
