#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  vector<vector<int>> a(n, vector<int>(n, 0));
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> a[i][j];
    }
  }
  for (int i = 0; i < n; ++i) {
    int j = (i + 1) % n;
    int k = (j + 1) % n;
    long long tmp = (long long)a[i][j] * a[i][k] / a[j][k];
    printf("%lld ", llround(sqrt(tmp)));
  }
  return 0;
}
