#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long int t, n, i, j, k, a1;
  cin >> n;
  long long int res[n];
  long long int arr[n][n];
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) cin >> arr[i][j];
  }
  t = (arr[0][1] * arr[0][2]) / arr[1][2];
  a1 = (long long int)sqrt(t);
  cout << a1 << " ";
  for (i = 1; i < n; i++) {
    cout << arr[0][i] / a1 << " ";
  }
  cout << endl;
  return 0;
}
