#include <bits/stdc++.h>
using namespace std;
int main(int argc, char **argv) {
  int a, b, m;
  int vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double t = -1. * m / vy;
  double first = fabs(a / 2. + vx * t);
  double z = fabs(vz * t);
  double rx, rz;
  bool rf = 0;
  while (first - a > 1e-9) {
    first -= a;
    rf = !rf;
  }
  if (!rf)
    rx = first;
  else
    rx = a - first;
  rf = 0;
  while (z - b > 1e-9) {
    z -= b;
    rf = !rf;
  }
  if (!rf)
    rz = z;
  else
    rz = b - z;
  printf("%.14f %.14f\n", rx, rz);
  return 0;
}
