#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  long long grid[n][n];
  for (int i = 0; i < n; i++)
    for (int j = 0; j < n; j++) cin >> grid[i][j];
  long long x = grid[1][0] * grid[2][0] / grid[1][2];
  x = sqrt(x);
  cout << x << " ";
  for (int i = 1; i < n; i++) cout << grid[0][i] / x << " ";
  return 0;
}
