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