#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j, k;
  cin >> n;
  long long M[n][n], a[n];
  for (i = 0; i < n; ++i) {
    for (j = 0; j < n; ++j) {
      cin >> M[i][j];
    }
  }
  for (i = 0; i < n; ++i) {
    if (i < n - 2) {
      a[i] = sqrt((M[i][i + 1] * M[i][i + 2]) / M[i + 1][i + 2]);
      cout << a[i] << " ";
    } else if (i == n - 2) {
      a[i] = sqrt((M[i][i + 1] * M[i][i - 1]) / M[i + 1][i - 1]);
      cout << a[i] << " ";
    } else {
      a[i] = sqrt((M[i][i - 1] * M[i][i - 2]) / M[i - 1][i - 2]);
      cout << a[i] << endl;
    }
  }
  return 0;
}
