#include <bits/stdc++.h>
using namespace std;
long long int arr[1001][1001];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> arr[i][j];
    }
  }
  vector<long long int> val;
  for (int i = 0; i < n - 2; i++) {
    long long int x =
        sqrt((arr[i][i + 1] * arr[i][i + 2]) / (arr[i + 1][i + 2]));
    val.push_back(x);
  }
  val.push_back(arr[0][n - 2] / val[0]);
  val.push_back(arr[0][n - 1] / val[0]);
  for (auto x : val) printf("%lld ", x);
  return 0;
}
