#include <bits/stdc++.h>
using namespace std;
void Onigiri() {
  long long n;
  cin >> n;
  long long a[n][n];
  for (long long i = 0; i < n; i++)
    for (long long j = 0; j < n; j++) cin >> a[i][j];
  for (long long i = 0; i < n; i++) {
    if (i + 1 < n && i + 2 < n) {
      long long p = a[i][i + 1];
      long long q = a[i + 1][i + 2];
      long long r = a[i][i + 2];
      a[i][i] = sqrt((p * r) / q);
    } else if (i - 1 >= 0 && i - 2 >= 0) {
      long long p = a[i][i - 1];
      long long q = a[i - 1][i - 2];
      long long r = a[i][i - 2];
      a[i][i] = sqrt((p * r) / q);
    } else {
      long long p = a[i][i - 1];
      long long q = a[i][i + 1];
      long long r = a[i - 1][i + 1];
      a[i][i] = sqrt((p * q) / r);
    }
    cout << a[i][i] << " ";
  }
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  while (t--) {
    Onigiri();
    cout << "\n";
  }
  cerr << "\n" << (float)clock() / CLOCKS_PER_SEC * 1000 << " ms" << endl;
  return 0;
}
