#include <bits/stdc++.h>
using namespace std;
long long v[1010][1010];
long long gcd(long long a, long long b) {
  if (a < b) swap(a, b);
  if (b == 0) return a;
  return gcd(b, a % b);
}
void resolve() {
  long long n;
  cin >> n;
  for (long long i = 1; i <= n; i++) {
    for (long long l = 1; l <= n; l++) {
      cin >> v[i][l];
    }
  }
  long long ans1 = sqrt(v[1][3] * v[1][2] / v[2][3]);
  cout << ans1 << ' ';
  for (long long i = 2; i <= n; i++) {
    cout << v[1][i] / ans1 << ' ';
  }
}
int main() { resolve(); }
