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