#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long arr[n][n];
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < n; j++) cin >> arr[i][j];
  }
  long long ans[n];
  ans[2] = sqrt(arr[1][2] * arr[2][0] / arr[1][0]);
  ans[1] = arr[1][2] / ans[2];
  ans[0] = arr[1][0] / ans[1];
  for (long long i = 3; i < n; i++) {
    ans[i] = arr[i][0] / ans[0];
  }
  for (long long i = 0; i < n; i++) cout << ans[i] << " ";
  return 0;
}
