#include <bits/stdc++.h>
using namespace std;
map<long long int, long long int> mp;
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 + 1][n + 1];
  long long int b[n + 1];
  for (long long int i = 1; i <= n; i++) {
    for (long long int j = 1; j <= n; j++) {
      cin >> a[i][j];
    }
  }
  long long int alpha = a[1][2];
  long long int beta = a[2][3];
  long long int gamma = a[1][3];
  long long int d = alpha * gamma;
  b[1] = sqrt(d / beta);
  for (long long int j = 2; j <= n; j++) {
    b[j] = (a[1][j] / b[1]);
  }
  for (long long int i = 1; i <= n; i++) cout << b[i] << " ";
  return 0;
}
