#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  double a, b, m;
  cin >> a >> b >> m;
  double vx, vy, vz;
  cin >> vx >> vy >> vz;
  double T = m / abs(vy);
  double dx = T * abs(vx);
  double X = a / 2.0;
  int kierx = (vx >= 0) ? 1 : -1;
  while (dx > 0) {
    if (kierx == 1) {
      double odl = abs(a - X);
      if (dx >= odl) {
        X = a;
        dx -= odl;
      } else {
        X += dx;
        dx = 0;
      }
      kierx = -1;
    } else {
      double odl = abs(X);
      if (dx >= odl) {
        X = 0;
        dx -= odl;
      } else {
        X -= dx;
        dx = 0;
      }
      kierx = 1;
    }
  }
  double dz = T * abs(vz);
  double Z = 0.0;
  int kierz = 1;
  while (dz > 0) {
    if (kierz == 1) {
      double odl = abs(b - Z);
      if (dz >= odl) {
        Z = b;
        dz -= odl;
      } else {
        Z += dz;
        dz = 0;
      }
      kierz = -1;
    } else {
      double odl = abs(Z);
      if (dz >= odl) {
        Z = 0;
        dz -= odl;
      } else {
        Z -= dz;
        dz = 0;
      }
      kierz = 1;
    }
  }
  cout << fixed << setprecision(10);
  cout << X << " " << Z;
  return 0;
}
