#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long double a, b, m, vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  long double t = abs(m / vy);
  long double mx = abs(t * vx), mz = abs(t * vz), nx = -1, nz = -1;
  if (mx <= a / 2) {
    if (vx > 0) {
      nx = mx + a / 2;
    } else {
      nx = a / 2 - mx;
    }
  }
  if (mz <= b) {
    nz = mz;
  }
  if (nx == -1) {
    mx -= a / 2;
    mx = fmod(mx, (2 * a));
    if (vx > 0) {
      if (mx > a) {
        mx -= a;
        nx = mx;
      } else {
        mx = a - mx;
        nx = mx;
      }
    } else {
      if (mx > a) {
        mx -= a;
        mx = a - mx;
        nx = mx;
      } else {
        nx = mx;
      }
    }
  }
  if (nz == -1) {
    mz = fmod(mz, (2 * b));
    if (mz > b) {
      mz -= b;
      mz = b - mz;
      nz = mz;
    } else {
      nz = mz;
    }
  }
  cout << fixed << setprecision(10) << nx << ' ' << nz << '\n';
}
