#include <bits/stdc++.h>
using namespace std;
const int N = 1e3 + 10;
long long n, a[N][N], b[N];
int main() {
  scanf("%lld", &n);
  for (int i = 1; i <= n; i++)
    for (int j = 1; j <= n; j++) scanf("%lld", &a[i][j]);
  b[1] = sqrt(a[1][2] * a[1][3] / a[2][3]);
  for (int i = 2; i <= n; i++) b[i] = a[1][i] / b[1];
  for (int i = 1; i <= n; i++) printf("%lld ", b[i]);
  puts("");
  return 0;
}
