#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double tm = (double)m / -vy;
  double xl = abs(vx * tm), zl = vz * tm;
  double z = fmod(zl, (double)(b * 2));
  if (z > b) z = 2 * b - z;
  double x;
  if (xl > a / 2.0) {
    xl -= a / 2.0;
    x = fmod(xl, (double)(a * 2));
    if (x > a) x = 2 * a - x;
    if (vx > 0) x = a - x;
  } else {
    xl = vx * tm;
    x = xl + a / 2.0;
  }
  printf("%.7lf %.7lf", x, z);
}
