#include <bits/stdc++.h>
using namespace std;
long long int a[1001][1001], b[1001];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int n, i, j;
  cin >> n;
  for (i = 1; i <= n; i++)
    for (j = 1; j <= n; j++) cin >> a[i][j];
  b[1] = a[1][2] * a[1][3] / a[2][3];
  b[1] = sqrt(b[1]);
  for (i = 2; i <= n; i++) b[i] = a[1][i] / b[1];
  for (i = 1; i <= n; i++) cout << b[i] << " ";
  return 0;
}
