#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  long long int n;
  cin >> n;
  long long int arr[n][n];
  for (long long int i = 0; i < n; i++) {
    for (long long int j = 0; j < n; j++) {
      cin >> arr[i][j];
    }
  }
  long long int ans = sqrt((arr[0][1] * arr[0][2]) / arr[1][2]);
  cout << ans << " ";
  for (int i = 1; i < n; i++) {
    cout << arr[0][i] / ans << " ";
  }
  return 0;
}
