#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 2;
void solve() {
  long long n;
  cin >> n;
  long long a[n][n];
  long long i, j;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) cin >> a[i][j];
  }
  long long a1 = (a[0][1] * a[0][2]) / a[1][2];
  a1 = sqrt(a1);
  cout << a1 << " ";
  for (int i = 1; i < n; i++) {
    cout << a[0][i] / a1 << " ";
  }
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
