#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007;
const long double pi = acos((long double)-1);
long long gcd(long long a, long long b) { return b ? gcd(b, a % b) : a; }
long long num_generator() { return rand() % 1000; }
void array_generator(long long a[], long long n) {
  for (long long i = 0; i < n; i++) a[i] = rand() % 100;
}
void solve() {
  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];
  long long b[n];
  b[1] = sqrtl((a[0][1] * a[1][2]) / a[0][2]);
  b[0] = a[0][1] / b[1];
  for (long long i = 2; i < n; i++) b[i] = a[0][i] / b[0];
  for (long long i = 0; i < n; i++) cout << b[i] << " ";
  cout << "\n";
  ;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  solve();
  return 0;
}
