#include <bits/stdc++.h>
using namespace std;
long long n, g, a[1005], grid[1005][1005];
int main() {
  cin >> n;
  for (long long(j) = (0); (j) < (n); (j)++) {
    for (long long(i) = (0); (i) < (n); (i)++) {
      cin >> grid[j][i];
    }
  }
  for (long long(i) = (0); (i) < (n); (i)++) {
    int a2 = (i + 2) % n, a1 = (i + 1) % n;
    a[i] = sqrt(grid[i][a1] * grid[i][a2] / grid[a1][a2]);
  }
  for (long long(i) = (0); (i) < (n); (i)++) {
    cout << a[i] << (i == n ? "\n" : " ");
  }
}
