#include <bits/stdc++.h>
using namespace std;
int a, b;
int m;
double v[3];
struct pos {
  pos() {}
  pos(double x, double y, double z) { p[0] = x, p[1] = y, p[2] = z; }
  double p[3];
  double time(pos x) {
    for (int i = 0; i < 3; ++i) {
      if (p[i] < 0) continue;
      double t = max(-x[i] / v[i], (p[i] - x[i]) / v[i]);
      return t;
    }
    assert(false);
  }
  void flip(pos& x) {
    for (int i = 0; i < 3; ++i) {
      if (p[i] < 0) continue;
      double t = max((-x[i]) / v[i], (p[i] - x[i]) / v[i]);
      for (int j = 0; j < 3; ++j) {
        x.p[j] += v[j] * t;
      }
      v[i] *= -1;
      return;
    }
  }
  double& operator[](int x) { return p[x]; }
} wall[3];
pos ball;
int main() {
  scanf("%d%d%d", &a, &b, &m);
  scanf("%lf%lf%lf", v, v + 1, v + 2);
  wall[2] = pos(a, -1, -1);
  wall[0] = pos(-1, 0, -1);
  wall[1] = pos(-1, -1, b);
  ball = pos(a / 2.0, m, 0);
  for (;;) {
    double t = 99999;
    int sel = -1;
    for (int i = 0; i < 3; ++i) {
      double tt = wall[i].time(ball);
      if (t > tt) {
        t = tt;
        sel = i;
      }
    }
    wall[sel].flip(ball);
    if (sel == 0) {
      printf("%.10lf %.10lf\n", ball[0], ball[2]);
      return 0;
    }
  }
}
