#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 5;
int mat[N][N];
int main() {
  int n;
  while (scanf("%d", &n) != EOF) {
    for (int i = 0; i < n; ++i)
      for (int j = 0; j < n; ++j) scanf("%d", &mat[i][j]);
    int a1 = sqrt(1LL * mat[0][1] * mat[0][2] / (1LL * mat[1][2]));
    printf("%d ", a1);
    for (int i = 1; i < n; ++i) printf("%d ", mat[0][i] / a1);
    puts("");
  }
  return 0;
}
