#include <bits/stdc++.h>
using namespace std;
const int mod = 1e9 + 7;
void fastio() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
}
int t, n, k;
long long arr[1113][1113];
int main() {
  fastio();
  cin >> n;
  for (long long i = 1; i < n + 1; i++) {
    for (long long j = 1; j < n + 1; j++) {
      cin >> arr[i][j];
    }
  }
  long long ans = sqrt(arr[1][2] * arr[1][3] / arr[2][3]);
  cout << ans;
  for (long long i = 2; i < n + 1; i++) {
    cout << " " << arr[i][1] / ans;
  }
  cout << endl;
  return 0;
}
