#include <bits/stdc++.h>
using namespace std;
double position(double n, double x) {
  while (x < 0 || x > n) {
    if (x < 0)
      x = -x;
    else
      x = 2 * n - x;
  }
  return x;
}
int main() {
  double a, b, m, vx, vy, vz, t, x, z;
  cin >> a >> b >> m >> vx >> vy >> vz;
  t = -1.0 * m / vy;
  x = position(a, a / 2.0 + vx * t);
  z = position(b, vz * t);
  printf("%.10lf %.10lf\n", x, z);
}
