#include <bits/stdc++.h>
using namespace std;
double vx, vy, vz, a, b, m;
double INF = 1000000.5;
void collision(double x, double y, double z) {
  double tx, ty, tz, tmin;
  tx = max((0 - x) / vx, (a - x) / vx);
  ty = (0 - y) / vy;
  if (ty < 0) ty = INF;
  tz = max((0 - z) / vz, (b - z) / vz);
  tmin = min(tx, min(ty, tz));
  x = x + vx * tmin;
  y = y + vy * tmin;
  z = z + vz * tmin;
  if (abs(y) <= 1e-6) {
    printf("%.9f %.9f\n", x, z);
    return;
  }
  if (ty == tmin) vy *= -1;
  if (tx == tmin) vx *= -1;
  if (tz == tmin) vz *= -1;
  collision(x, y, z);
}
int main() {
  cin >> a >> b >> m;
  cin >> vx >> vy >> vz;
  collision(a / 2, m, 0);
  return 0;
}
