#include <bits/stdc++.h>
using namespace std;
int n;
long long a[1010];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  long long k;
  cin >> k;
  cin >> k;
  cin >> k;
  long long x = (long long)a[2] * a[1] / k;
  long double dx = x;
  long long ans = (long long)(sqrt(x) + 0.005);
  cout << ans << ' ';
  for (int i = 1; i < n; i++) {
    cout << a[i] / ans << ' ';
  }
  return 0;
}
