#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  vy *= -1;
  int t1 = 0, t2 = 0;
  if (vx < 0) {
    vx *= -1;
    t1 = 1;
  }
  if (vz < 0) {
    vz *= -1;
    t2 = 1;
  }
  double x0, z0;
  double t = (m * 1.0) / vy;
  double zdis = vz * t;
  int d1 = zdis / b;
  double r1 = zdis - d1 * b;
  if (r1 == 0) {
    if (d1 % 2 == 0) {
      z0 = 0;
    } else {
      z0 = b;
    }
  } else {
    if (d1 % 2 == 0) {
      z0 = r1;
    } else {
      z0 = b - r1;
    }
  }
  double xdis = vx * t;
  double n = a / 2.0;
  int d2 = xdis / n;
  double r2 = xdis - d2 * n;
  if (r2 == 0) {
    if (d2 % 2 == 0) {
      x0 = n;
    } else {
      if (d2 % 4 == 1) {
        x0 = a;
      } else {
        x0 = 0;
      }
    }
  } else {
    if (d2 % 2 == 0) {
      if ((d2 / 2) % 2 == 0) {
        x0 = n + r2;
      } else {
        x0 = n - r2;
      }
    } else {
      if (d2 % 4 == 1) {
        x0 = a - r2;
      } else {
        x0 = r2;
      }
    }
  }
  if (t1 == 1) {
    x0 = a - x0;
  }
  if (t2 == 1) {
    z0 = b - z0;
  }
  printf("%.10f %.10f", x0, z0);
  return 0;
}
