#include <bits/stdc++.h>
using namespace std;
long long arr[1005][1005];
long long ans[1005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) {
      cin >> arr[i][j];
    }
  ans[1] = (long long)sqrt(arr[0][1] * arr[1][2] / arr[0][2]);
  for (int i = 0; i < n; i++) {
    if (i == 1) continue;
    ans[i] = arr[i][1] / ans[1];
  }
  for (int i = 0; i < n; i++) {
    cout << ans[i] << (i == n - 1 ? "\n" : " ");
  }
  return 0;
}
