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