#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m1 = 0, m2 = 0;
  cin >> n;
  vector<vector<long long> > m(n, vector<long long>(n));
  vector<int> a(n);
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> m[i][j];
  for (int i = 1; i < n - 1; i++)
    a[i] = sqrt(m[i][i + 1] * m[i - 1][i] / m[i - 1][i + 1]);
  a[0] = m[0][1] / a[1];
  a[n - 1] = m[0][n - 1] / a[0];
  for (int i = 0; i < n; i++) cout << a[i] << ' ';
  return 0;
}
