#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  long long a, b, m;
  long long vx, vy, vz;
  cin >> a >> b >> m >> vx >> vy >> vz;
  double time = -((double)(m) / (double)(vy));
  double xc = (double)(a) / 2.0 + time * vx;
  if (xc >= 0) {
    long long p = xc / a;
    if (p % 2 == 1) {
      xc = (p + 1) * a - xc;
    } else {
      xc -= p * a;
    }
  } else {
    long long p = xc / a;
    if (p % 2 == 0) {
      xc -= p * a;
      xc = -xc;
    } else {
      xc -= p * a;
      xc = -xc;
      xc = a - xc;
    }
  }
  double zc = time * vz;
  if (zc >= 0) {
    long long p = zc / b;
    if (p % 2 == 1) {
      zc = (p + 1) * b - zc;
    } else {
      zc -= p * b;
    }
  } else {
    long long p = zc / b;
    if (p % 2 == 0) {
      zc -= p * b;
      zc = -zc;
    } else {
      zc -= p * b;
      zc = -zc;
      zc = b - zc;
    }
  }
  printf("%0.12llf %0.12llf", xc, zc);
}
