#include <bits/stdc++.h>
using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
template <typename T1, typename T2>
ostream &operator<<(ostream &out, const pair<T1, T2> &item) {
  out << '(' << item.first << ", " << item.second << ')';
  return out;
}
const int N = 1010;
int a[N][N];
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j <= n; ++j) cin >> a[i][j];
  for (int i = 1; i <= n; ++i) {
    int j = (i + 1 > n ? 1 : i + 1);
    int k = (j + 1 > n ? 1 : j + 1);
    cout << int(round(sqrt(1LL * a[i][j] * a[i][k] / a[j][k]))) << ' ';
  }
  return 0;
}
