#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, m, M;
  cin >> M;
  long long arr[M][M];
  for (long long i = 0; i < M; i++)
    for (long long j = 0; j < M; j++) cin >> arr[i][j];
  long long gcd = sqrt((arr[0][1] * arr[0][2]) / arr[1][2]);
  cout << gcd << " ";
  for (long long i = 1; i < M; i++) {
    cout << arr[0][i] / gcd << " ";
  }
}
