#include <bits/stdc++.h>
const int maxi = 2000000000;
const int maxq = 1000000000;
const double eps = 1e-10;
const double pi = 3.1415926535897932;
const double inf = 1e+18;
const int mo = 1000000007;
using namespace std;
double a, b, m, vx, vy, vz;
int main() {
  cin >> a >> b >> m;
  cin >> vx >> vy >> vz;
  double xs = a / 2.;
  double ys = m;
  double zs = 0;
  double tx = ys / fabs(vy);
  double tz = tx;
  bool flag = false;
  if (fabs(vx * tx) > a / 2.) {
    if (vx < 0)
      xs = 0;
    else
      xs = a;
    tx = tx - ((a / 2.) / fabs(vx));
    flag = true;
  } else
    xs = xs + vx * tx, tx = 0;
  vx = fabs(vx);
  int tiz = int((vz * tz) / b);
  int tix = int((vx * tx) / a);
  if (vx > eps) tx = tx - (tix * a) / vx;
  if (vz > eps) tz = tz - (tiz * b) / vz;
  if (((tiz)&1))
    zs = b - tz * vz;
  else
    zs = tz * vz;
  if (flag) {
    if (fabs(xs) < eps) {
      if (((tix)&1))
        xs = a - tx * vx;
      else
        xs = tx * vx;
    } else {
      if (((tix)&1) == 0)
        xs = a - tx * vx;
      else
        xs = tx * vx;
    }
  }
  printf("%.9lf %.9lf\n", xs, zs);
  return 0;
}
