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