#include <bits/stdc++.h>
using namespace std;
const int MAXN = 1e3 + 20;
const int MOD = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const long long LLINF = 0x3f3f3f3f3f3f3f3f;
const double PI = acos(-1.0);
const double RATE = 0.995;
const double eps = 1e-4;
int arr[MAXN][MAXN];
signed main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    for (int j = 1; j <= n; ++j) {
      scanf("%d", &arr[i][j]);
    }
  }
  int a1a2 = arr[1][2];
  int a2 = sqrt(1ll * a1a2 * arr[2][3] / arr[1][3]);
  printf("%d ", arr[1][2] / a2);
  printf("%d", a2);
  for (int i = 3; i <= n; ++i) printf(" %d", arr[2][i] / a2);
  puts("");
  return 0;
}
