#include <bits/stdc++.h>
using namespace std;
constexpr int NMAX = 1e3 + 5;
int n;
int a[NMAX][NMAX];
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= n; ++j) cin >> a[i][j];
  }
  long long val = 1LL * a[1][2] * a[1][3] / a[2][3];
  val = sqrt(val);
  cout << val << " ";
  for (int i = 2; i <= n; ++i) cout << a[1][i] / val << " ";
  return 0;
}
