#include <bits/stdc++.h>
using namespace std;
int n;
int a[1001][1001];
int c[1001];
int main() {
  cin >> n;
  for (int i = 0; i < n; ++i) {
    for (int j = 0; j < n; ++j) {
      cin >> a[i][j];
    }
  }
  c[0] = (int)sqrt((1LL * a[0][1] * a[0][2]) / a[1][2]);
  for (int i = 1; i < n; ++i) {
    c[i] = a[0][i] / c[0];
  }
  for (int i = 0; i < n; ++i) {
    cout << c[i] << " ";
  }
}
