#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
int main() {
  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 p = a[0][1];
  long long u = a[0][2];
  long long t = a[1][2];
  long long r = p * u;
  long long s = sqrt(r / t);
  cout << s << " ";
  for (long long i = 1; i < n; i++) {
    cout << a[0][i] / s << " ";
  }
  return 0;
}
