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