#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:2000000")
#pragma comment(linker, "/HEAP:2000000")
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n;
  cin >> n;
  long long m[n][n], a[n];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> m[i][j];
    }
  }
  long long x = sqrt((m[0][1] * m[0][2]) / m[1][2]);
  cout << x << " ";
  for (int i = 1; i < n; i++) {
    cout << m[0][i] / x << " ";
  }
  return 0;
}
