#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  ;
  double posx = a / 2, posy = m, posz = 0;
  if (vx == 0 && vz == 0) {
    cout << fixed << setprecision(10) << posx << " " << posz;
    exit(0);
  }
  while (posy > 0) {
    double xgo = 1e3, zgo = 1e3;
    if (vx > 0 && vx != 0) {
      xgo = (a - posx) / vx;
    } else if (vx != 0)
      xgo = (posx) / (-vx);
    if (vz > 0 && vz != 0) {
      zgo = (b - posz) / vz;
    } else if (vz != 0)
      zgo = (posz) / (-vz);
    if (min(zgo, xgo) >= (posy) / (-vy)) {
      double t = (posy) / (-vy);
      posx += vx * t;
      posy += vy * t;
      posz += vz * t;
      break;
    } else {
      double t = min(zgo, xgo);
      posx += t * vx;
      posy += t * vy;
      posz += t * vz;
      if (zgo < xgo)
        vz = -vz;
      else
        vx = -vx;
    }
  }
  cout << fixed << setprecision(10) << posx << " " << posz;
  return 0;
}
