#include <bits/stdc++.h>
using namespace std;
const long long INF = (long long)1e18;
const int mod = (int)1e9 + 7;
const int MAXN = (int)1e3 + 5;
long long n;
long long grid[MAXN][MAXN];
long long arr[MAXN];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n;
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> grid[i][j];
    }
  }
  long long bet = grid[0][2], gam = grid[1][2], al = grid[0][1];
  arr[1] = (int)sqrt(gam * al / bet);
  for (int i = 0; i < n; i++) {
    if (i == 1) continue;
    arr[i] = grid[i][1] / arr[1];
  }
  for (int i = 0; i < n; i++) {
    cout << arr[i] << " ";
  }
}
