#include <bits/stdc++.h>
using namespace std;
const double eps = 1e-10, INFTY = 1e10;
int A, B, M;
int vx, vy, vz;
int main() {
  cin >> A >> B >> M >> vx >> vy >> vz;
  vy *= -1;
  long double t = ((long double)M) / vy;
  long double abz = t * vz;
  long double abx = t * vx + ((long double)A) / 2;
  int quoz = (int)(abz / B);
  long double remz = abz - quoz * B;
  long double pz;
  if (quoz % 2 == 0)
    pz = remz;
  else
    pz = B - remz;
  int quox;
  long double remx, px;
  if (vx < 0) {
    if (abx >= 0)
      px = abx;
    else {
      abx = t * (-vx) - ((long double)A) / 2;
      quox = (int)(abx / A);
      remx = abx - quox * A;
      if (quox % 2 == 0)
        px = remx;
      else
        px = A - remx;
    }
  } else {
    if (abx <= A)
      px = abx;
    else {
      abx = t * vx - ((long double)A) / 2;
      quox = (int)(abx / A);
      remx = abx - quox * A;
      if (quox % 2 == 1)
        px = remx;
      else
        px = A - remx;
    }
  }
  cout << fixed << setprecision(18) << px << " " << pz << "\n";
  return 0;
}
