#include <bits/stdc++.h>
using namespace std;
void FAST() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
long long power(long long a, long long b) {
  long long res = 1;
  for (int i = 1; i <= b; ++i) res *= a;
  return res;
}
int main() {
  FAST();
  long long n;
  cin >> n;
  long long a[n][n], f[n];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> a[i][j];
  long long st = 1;
  long long a1 = sqrt((a[0][1] * a[0][2]) / (a[1][2]));
  f[0] = a1;
  for (long long i = 1; i < n; i++) {
    f[i] = a[i][0] / a1;
  }
  for (int i = 0; i < n; i++) cout << f[i] << ' ';
  cout << "\n";
}
