#include <bits/stdc++.h>
const double eps = 1e-7, PI = 3.1415926;
const int N = 5e5;
using namespace std;
long long z, n, m, k, x, y, a[1001][1001], mx = -1, mn = 1e9, sum, an, ans;
char c[N];
string s, s1, s2;
map<int, int> mp;
vector<int> vec;
int main() {
  scanf("%lld", &n);
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) {
      cin >> a[i][j];
    }
  }
  x = a[1][2];
  y = a[1][3];
  z = a[2][3];
  an = sqrt((z * y / x));
  ans = a[1][3] / an;
  cout << ans << " ";
  for (int i = 2; i <= n; i++) {
    cout << a[1][i] / ans << " ";
  }
  return 0;
}
