#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  long long grid[n + 1][n + 1];
  for (int i = 0; i < n; i++) {
    for (int j = 0; j < n; j++) {
      cin >> grid[i][j];
    }
  }
  cout.setf(ios::fixed);
  for (int i = 0; i < n; i++) {
    if (i == 0) {
      cout << setprecision(0)
           << sqrt((grid[i][i + 1] * grid[i][i + 2]) / grid[i + 1][i + 2])
           << " ";
    } else if (i == n - 1) {
      cout << setprecision(0)
           << sqrt((grid[i][i - 1] * grid[i][i - 2]) / grid[i - 1][i - 2])
           << " ";
    } else {
      cout << setprecision(0)
           << sqrt((grid[i][i - 1] * grid[i][i + 1]) / grid[i - 1][i + 1])
           << " ";
    }
  }
}
