#include <bits/stdc++.h>
using namespace std;
double c(double l, double a) {
  while (l < -1e-8 || l > a + 1e-8) {
    if (l < -1e-8)
      l += 2 * a;
    else
      l = 2 * a - l;
  }
  return l;
}
int main() {
  double a, b, m, x, y, z;
  double t, lx, lz, tx, tz;
  scanf("%lf%lf%lf%lf%lf%lf", &a, &b, &m, &x, &y, &z);
  t = -m / y;
  lx = 0.5 * a + x * t;
  lz = z * t;
  printf("%.6f %.6f\n", c(lx, a), c(lz, b));
  return 0;
}
