#include <bits/stdc++.h>
double fmod(double a, double b) { return a - b * (int)(a / b); }
double nd() {
  double n;
  scanf("%lf", &n);
  return n;
}
double a, b, m, vx, vy, vz;
double calc_reflect(double xx, double mod) {
  if (xx < 0) xx *= -1;
  double rmd = fmod(xx, mod);
  int f1 = (int)(xx / mod);
  if (f1 % 2 == 0) {
    return rmd;
  } else {
    return mod - rmd;
  }
}
int main() {
  a = nd();
  b = nd();
  m = nd();
  vx = nd();
  vy = nd();
  vz = nd();
  double times = m / -vy;
  double xx = a / 2.0;
  double zz = 0;
  xx += times * vx;
  zz += times * vz;
  xx = calc_reflect(xx, a);
  zz = calc_reflect(zz, b);
  printf("%f %f\n", xx, zz);
  return 0;
}
