#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, x, n;
  cin >> n;
  long long int a[n][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[2][1]);
  cout << x << " ";
  for (i = 1; i < n; i++) cout << a[0][i] / x << " ";
  return 0;
}
