#include <bits/stdc++.h>
using namespace std;
const int INF = 1000000007;
const long long INF2 = 1000000000000000007;
const int MOD = 774254531;
const int MOD1 = 892237699;
const int SIZE = 150010;
const double eps = 1e-6;
long long n, m;
long long ar[1010][1010], res;
string st, b, minn;
long long gcd(long long a, long long b) {
  while (b) {
    a %= b;
    swap(a, b);
  }
  return a;
}
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      cin >> ar[i][j];
    }
  }
  res = sqrt(ar[0][1] * ar[0][2] / ar[1][2]);
  cout << res << " ";
  for (int i = 1; i < n; ++i) {
    cout << ar[0][i] / res << " ";
  }
  return 0;
}
