#include <bits/stdc++.h>
using namespace std;
const long long mod = 998244353LL;
int n;
int mat[1002][1002];
int ans[1002];
int main() {
  cin >> n;
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= n; ++j) {
      scanf("%d", &mat[i][j]);
    }
  }
  ans[1] = (int)sqrt((long long)mat[1][2] * (long long)mat[1][3] /
                     (long long)mat[2][3]);
  for (int j = 2; j <= n; ++j) {
    ans[j] = mat[1][j] / ans[1];
  }
  for (int i = 1; i <= n; ++i) {
    cout << ans[i];
    if (i < n)
      cout << " ";
    else
      cout << endl;
  }
  return 0;
}
