#include <bits/stdc++.h>
using namespace std;
const long long N = 1e3 + 7;
long long a[N][N];
int32_t main() {
  long long n;
  cin >> n;
  for (long long i = 0; i < n; i++)
    for (long long j = 0; j < n; j++) cin >> a[i][j];
  long long a12 = a[0][1], a23 = a[1][2], a13 = a[0][2];
  long double aa123 = (sqrt(a12 * 1.0) * sqrt(a23 * 1.0) * sqrt(a13 * 1.0));
  long long a123 = round(aa123);
  long long a1 = a123 / a23;
  cout << a1 << ' ';
  for (long long i = 1; i < n; i++) cout << a[0][i] / a1 << ' ';
}
