#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  long long n;
  cin >> n;
  long long m[n][n];
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) cin >> m[i][j];
  }
  vector<long long> a;
  for (long long i = 0; i < n; i++) a.push_back(0);
  a[2] = sqrt((m[0][2] * m[1][2]) / m[0][1]);
  a[0] = m[0][2] / a[2];
  a[1] = m[1][2] / a[2];
  if (n > 3) {
    for (long long i = 3; i < n; i++) a[i] = m[i][i - 1] / a[i - 1];
  }
  for (long long i = 0; i < n; i++) cout << a[i] << " ";
}
