#include <bits/stdc++.h>
int main() {
  double a, b, m;
  double vx, vy, vz;
  scanf("%lf %lf %lf", &a, &b, &m);
  scanf("%lf %lf %lf", &vx, &vy, &vz);
  double t = m / (-vy);
  double x0 = a / 2 + t * vx;
  double z0 = vz * t;
  while (x0 > a || x0 < 0) {
    if (x0 > a) {
      x0 = a - (x0 - a);
    }
    if (x0 < 0) {
      x0 = -x0;
    }
  }
  while (z0 > b || z0 < 0) {
    if (z0 > b) {
      z0 = b - (z0 - b);
    }
    if (z0 < 0) {
      z0 = -z0;
    }
  }
  printf("%.8lf %.8lf\n", x0, z0);
  return 0;
}
