#include <bits/stdc++.h>
using namespace std;
int dirx[] = {-1, -1, -1, 0, 0, 1, 1, 1};
int diry[] = {-1, 0, 1, -1, 1, -1, 0, 1};
double a, b, m, vx, vy, vz;
int main() {
  cout << fixed << setprecision(10);
  cin >> a >> b >> m >> vx >> vy >> vz;
  double t = -(m / vy);
  double disx = vx * t + a / 2.0;
  disx = abs(disx);
  int divx = disx / a;
  double xcor;
  if (divx & 1) {
    xcor = disx - a * divx;
    xcor = a - xcor;
  } else {
    xcor = disx - a * divx;
  }
  double disz = abs(vz * t);
  int divz = disz / b;
  double zcor;
  if (divz & 1) {
    zcor = disz - b * divz;
    zcor = b - zcor;
  } else {
    zcor = disz - b * divz;
  }
  cout << abs(xcor) << " " << abs(zcor);
}
