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