#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n + 1][n + 1];
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) cin >> a[i][j];
  }
  int res[n + 1];
  for (int i = 1; i <= n; i++) {
    if (i == 1) {
      res[1] = (int)sqrt(1LL * a[i][2] * a[1][3] / a[2][3]);
    } else if (i == n) {
      res[n] = (int)sqrt(1LL * a[n - 2][n] * a[n - 1][n] / a[n - 2][n - 1]);
    } else {
      res[i] = (int)sqrt(1LL * a[i][i - 1] * a[i][i + 1] / a[i - 1][i + 1]);
    }
  }
  for (int i = 1; i <= n; i++) cout << res[i] << " ";
  return 0;
}
