#include <bits/stdc++.h>
int main() {
  int n;
  scanf("%d", &n);
  long long int arr[n + 1][n + 1];
  for (int i = 1; i <= n; i++) {
    for (int j = 1; j <= n; j++) scanf("%lld", &arr[i][j]);
  }
  long long int product = arr[1][2] * arr[1][3] / arr[2][3];
  printf("%.0f ", sqrt(product));
  for (int i = 2; i <= n; i++) {
    printf("%.0f ", arr[i][1] / sqrt(product));
  }
}
