#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, m, vx, vy, vz, t, t1, t2, x, z = 0;
  cin >> a >> b >> m >> vx >> vy >> vz;
  x = a / 2;
  t2 = t1 = -m / vy;
  while (t1) {
    if (vx < 0) {
      t = -x / vx;
      if (t < t1) {
        t1 -= t;
        x = 0;
      } else {
        x += vx * t1;
        t1 = 0;
      }
    } else {
      t = (a - x) / vx;
      if (t < t1) {
        t1 -= t;
        x = a;
      } else {
        x += vx * t1;
        t1 = 0;
      }
    }
    vx = -vx;
  }
  while (t2) {
    if (vz < 0) {
      t = -z / vz;
      if (t < t2) {
        t2 -= t;
        z = 0;
      } else {
        z += vz * t2;
        t2 = 0;
      }
    } else {
      t = (b - z) / vz;
      if (t < t2) {
        t2 -= t;
        z = b;
      } else {
        z += vz * t2;
        t2 = 0;
      }
    }
    vz = -vz;
  }
  printf("%.9f %.9f", x, z);
  return 0;
}
