#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int a, b, m, kz, kx;
  double t, vx, vy, vz, x, z, sx, sz;
  scanf("%d %d %d", &a, &b, &m);
  scanf("%lf %lf %lf", &vx, &vy, &vz);
  t = -m / vy;
  sz = t * vz;
  kz = (int)(sz / b);
  if (kz % 2 == 0)
    z = sz - kz * b;
  else
    z = b - (sz - kz * b);
  sx = t * abs(vx) + a * 0.5;
  kx = (int)(sx / a);
  if (kx % 2 == 0)
    x = sx - kx * a;
  else
    x = a - (sx - kx * a);
  if (vx < 0) x = a - x;
  printf("%.9lf %.9lf\n", x, z);
  return 0;
}
