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