#include <bits/stdc++.h>
using namespace std;
int main() {
  double a, b, m, sx, sy, sz;
  cin >> a >> b >> m;
  cin >> sx >> sy >> sz;
  double x, y, z;
  y = (double)(-m) / sy;
  x = (double)(a) / 2 + (double)(sx * y);
  z = (double)(sz * y);
  if (x < 0) {
    while (x < 0) {
      x = x + 2 * a;
    }
  } else {
    while (x >= (double)(2 * a)) {
      x = (double)(x - 2 * a);
    }
  }
  if (x > (double)(a)) x = (double)(2 * a - x);
  while (z >= (double)(2 * b)) {
    z = (double)(z - 2 * b);
  }
  if (z > (double)(b)) {
    z = (double)(2 * b - z);
  }
  printf("%lf %lf", x, z);
  return 0;
}
