#include <bits/stdc++.h>
using namespace std;
double eps = 1e-9;
double findans(double r, double v, double t, double s) {
  double end = s + v * t;
  if (end < 0) {
    double nend = ((end > 0) ? end : -(end));
    int v = (int)(nend / r + eps);
    nend -= v * r;
    if ((v & 1) != 0) nend = r - nend;
    return nend;
  } else {
    double nend = end;
    int v = (int)(nend / r + eps);
    nend -= v * r;
    if ((v & 1) != 0) nend = r - nend;
    return nend;
  }
}
int main() {
  double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double t = m / ((vy > 0) ? vy : -(vy));
  double x = findans(a, vx, t, a / 2.0);
  double z = findans(b, vz, t, 0);
  printf("%.15lf %.15lf\n", x, z);
  return 0;
}
