#include <bits/stdc++.h>
using namespace std;
long long int GetAns(long long int sqans) {
  long long int st = 1, en = 1000000000, mid;
  while (st <= en) {
    mid = (st + en) / 2;
    if (mid * mid == sqans)
      return mid;
    else if (mid * mid < sqans)
      st = mid + 1;
    else
      en = mid - 1;
  }
  return 1;
}
void Procedure() {
  int n;
  cin >> n;
  long long int mat[n][n];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> mat[i][j];
  long long int ans = GetAns((mat[0][1] * mat[0][2]) / mat[1][2]);
  cout << ans;
  for (int i = 1; i < n; i++) cout << " " << (mat[0][i] / ans);
  cout << endl;
}
int main() { Procedure(); }
