#include <bits/stdc++.h>
using namespace std;
long long p[1000];
unsigned long long p1[1000][1000];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> p1[i][j];
    }
  }
  unsigned long long a = (p1[0][1] * p1[0][2]) / p1[1][2];
  p[0] = sqrt(a);
  for (int i = 1; i < n; i++) {
    p[i] = p1[0][i] / p[0];
  }
  for (int i = 0; i < n; i++) {
    cout << p[i] << " ";
  }
}
