#include <bits/stdc++.h>
using namespace std;
const int INF = (int)1e9;
signed main() {
  cin.tie(0);
  ios::sync_with_stdio(0);
  int n;
  cin >> n;
  vector<vector<long long>> M(n, vector<long long>(n));
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> M[i][j];
  long long x = (int)sqrt((M[0][1] * M[0][2]) / M[1][2]);
  cout << x << ' ';
  for (int i = 1; i < n; i++) {
    cout << M[0][i] / x << ' ';
  }
}
